/ LJCPHPCodeDoc / LJCCommentsLib / LJCComments / SetComment


Parameters
$line - The code line.
$codeFileSpec - The code file spec.

Syntax

PHP
public function SetComment(string $line, ?string $codeFileSpec = null)

Sets the XML comment value.

Example

PHP
 require_once "LJCCommentsLib.php";
 
 $line = "/// <summary>A summary comment.</summary>";
 $comments = new LJCComments();
 $comments->SetComment($line, "SourceFile.php");
 $summary = $comments->Summary;

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.