for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of PhpUnitGen.
*
* (c) 2017-2018 Paul Thébaud <[email protected]>
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace PhpUnitGen\Model\PropertyTrait;
use Doctrine\Common\Collections\Collection;
use PhpUnitGen\Annotation\AnnotationInterface\AnnotationInterface;
* Trait DocumentationTrait.
* @author Paul Thébaud <[email protected]>.
* @copyright 2017-2018 Paul Thébaud <[email protected]>.
* @license https://opensource.org/licenses/MIT The MIT license.
* @link https://github.com/paul-thebaud/phpunit-generator
* @since Class available since Release 2.0.0.
trait DocumentationTrait
{
* @var string|null $documentation The documentation.
protected $documentation;
* @var Collection|AnnotationInterface[] $annotations The annotations contained in the documentation.
protected $annotations;
* @param string|null $documentation The new documentation to be set.
public function setDocumentation(?string $documentation): void
$this->documentation = $documentation;
}
* @return string|null The current documentation.
public function getDocumentation(): ?string
return $this->documentation;
* @param AnnotationInterface $annotation The annotation to add.
public function addAnnotation(AnnotationInterface $annotation): void
$this->annotations->add($annotation);