for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpUnitGen\Annotation;
use PhpUnitGen\Annotation\AnnotationInterface\AnnotationInterface;
/**
* Class AbstractAnnotation.
*
* @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.
*/
abstract class AbstractAnnotation implements AnnotationInterface
{
* @var string $name The annotation name (such as "@PhpUnitGen\AssertTrue()").
private $name;
* @var int $line The annotation line on documentation block.
private $line;
* @var string|null $stringContent The string content of annotation, null if none.
private $stringContent;
* {@inheritdoc}
abstract public function getType(): int;
abstract public function compile(): void;
public function setName(string $name): void
$this->name = $name;
}
public function getName(): string
return $this->name;
public function setLine(int $line): void
$this->line = $line;
public function getLine(): int
return $this->line;
public function setStringContent(?string $stringContent): void
$this->stringContent = $stringContent;
public function getStringContent(): ?string
return $this->stringContent;