[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Zend Framework (http://framework.zend.com/) 4 * 5 * @link http://github.com/zendframework/zf2 for the canonical source repository 6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 7 * @license http://framework.zend.com/license/new-bsd New BSD License 8 */ 9 10 namespace Zend\Code\Reflection\DocBlock; 11 12 use Zend\Code\Generic\Prototype\PrototypeClassFactory; 13 use Zend\Code\Reflection\DocBlock\Tag\TagInterface; 14 15 class TagManager extends PrototypeClassFactory 16 { 17 /** 18 * @return void 19 */ 20 public function initializeDefaultTags() 21 { 22 $this->addPrototype(new Tag\ParamTag()); 23 $this->addPrototype(new Tag\ReturnTag()); 24 $this->addPrototype(new Tag\MethodTag()); 25 $this->addPrototype(new Tag\PropertyTag()); 26 $this->addPrototype(new Tag\AuthorTag()); 27 $this->addPrototype(new Tag\LicenseTag()); 28 $this->addPrototype(new Tag\ThrowsTag()); 29 $this->setGenericPrototype(new Tag\GenericTag()); 30 } 31 32 /** 33 * @param string $tagName 34 * @param string $content 35 * @return TagInterface 36 */ 37 public function createTag($tagName, $content = null) 38 { 39 /* @var TagInterface $newTag */ 40 $newTag = $this->getClonedPrototype($tagName); 41 42 if ($content) { 43 $newTag->initialize($content); 44 } 45 46 return $newTag; 47 } 48 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |