Вход Регистрация
Файл: gapps/vendor/phpdocumentor/reflection-docblock/examples/03-reconstituting-a-docblock.php
Строк: 30
<?php

require_once(__DIR__ '/../vendor/autoload.php');

use 
phpDocumentorReflectionDocBlockSerializer;
use 
phpDocumentorReflectionDocBlockFactory;

$docComment = <<<DOCCOMMENT
/**
 * This is an example of a summary.
 *
 * And here is an example of the description
 * of a DocBlock that can span multiple lines.
 *
 * @see phpDocumentorReflectionDocBlockStandardTagFactory
 */
DOCCOMMENT;

$factory  DocBlockFactory::createInstance();
$docblock $factory->create($docComment);

// Create the serializer that will reconstitute the DocBlock back to its original form.
$serializer = new Serializer();

// Reconstitution is performed by the `getDocComment()` method.
$reconstitutedDocComment $serializer->getDocComment($docblock);
Онлайн: 0
Реклама