| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class AnnotationMetadataBuilder |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | private $name; |
||
| 15 | |||
| 16 | /** @var AnnotationTarget */ |
||
| 17 | private $target; |
||
| 18 | |||
| 19 | /** @var bool */ |
||
| 20 | private $hasConstructor; |
||
| 21 | |||
| 22 | /** @var PropertyMetadata[] */ |
||
| 23 | private $properties; |
||
| 24 | |||
| 25 | public function __construct() |
||
| 31 | } |
||
| 32 | |||
| 33 | public function withTarget(AnnotationTarget $target) : self |
||
| 34 | { |
||
| 35 | $this->target = $target; |
||
| 36 | |||
| 37 | return $this; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function hasConstructor() : self |
||
| 41 | { |
||
| 42 | $this->hasConstructor = true; |
||
| 43 | |||
| 44 | return $this; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function withProperties(PropertyMetadata ...$properties) : self |
||
| 48 | { |
||
| 49 | $this->properties = $properties; |
||
| 50 | |||
| 51 | return $this; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function build() : AnnotationMetadata |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | } |
||
| 64 |