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 |
include_once "LJCRoot.php";
$prefix = RelativePrefix();
include_once "$prefix/GenDoc/DocDataLib/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.