| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class HaveNameMatchingRegEx implements Expression |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | private $name; |
||
| 17 | |||
| 18 | public function __construct(string $name) |
||
| 19 | { |
||
| 20 | $this->name = $name; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function describe(ClassDescription $theClass): Description |
||
| 24 | { |
||
| 25 | return new PositiveDescription("should [have|not have] a name that matches {$this->name}"); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function evaluate(ClassDescription $theClass, Violations $violations): void |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 41 |