| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class ExpectationAutoStorage implements ExpectationStorage |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var Expectation[] |
||
| 28 | */ |
||
| 29 | private $expectations; |
||
| 30 | |||
| 31 | public function __construct() |
||
| 32 | { |
||
| 33 | $this->clearExpectations(); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function addExpectation(Expectation $expectation): void |
||
| 37 | { |
||
| 38 | $this->expectations[] = $expectation; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | * |
||
| 44 | * @see \Mcustiel\Phiremock\Server\Model\ExpectationStorage::listExpectations() |
||
| 45 | */ |
||
| 46 | public function listExpectations(): array |
||
| 47 | { |
||
| 48 | return $this->expectations; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function clearExpectations(): void |
||
| 54 | } |
||
| 55 | } |
||
| 56 |