| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | class HaveNameMatchingRegEx implements Expression |
||
| 23 | { |
||
| 24 | /** @var string */ |
||
| 25 | private $name; |
||
| 26 | |||
| 27 | public function __construct(string $name) |
||
| 28 | { |
||
| 29 | $this->name = $name; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function describe(ClassDescription $theClass): Description |
||
| 33 | { |
||
| 34 | return new PositiveDescription("should [have|not have] a name that matches {$this->name}"); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function evaluate(ClassDescription $theClass, Violations $violations): void |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 |