| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Example |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $name; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var CodeBlock |
||
| 22 | */ |
||
| 23 | private $code; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var ExpectationInterface[] |
||
| 27 | */ |
||
| 28 | private $expectations; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $name Name of this example |
||
| 32 | * @param CodeBlock $code Example code |
||
| 33 | * @param ExpectationInterface[] $expectations List of expectations |
||
| 34 | */ |
||
| 35 | public function __construct(string $name, CodeBlock $code, array $expectations) |
||
| 36 | { |
||
| 37 | $this->name = $name; |
||
| 38 | $this->code = $code; |
||
| 39 | $this->expectations = $expectations; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getName(): string |
||
| 43 | { |
||
| 44 | return $this->name; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function shouldBeEvaluated(): bool |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getCodeBlock(): CodeBlock |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return ExpectationInterface[] |
||
| 59 | */ |
||
| 60 | public function getExpectations(): array |
||
| 63 | } |
||
| 64 | } |
||
| 65 |