| 1 | <?php |
||
| 5 | class Flip |
||
| 6 | { |
||
| 7 | private $class; |
||
| 8 | private $features; |
||
| 9 | |||
| 10 | 8 | public function __construct($class, array $features = []) |
|
| 15 | |||
| 16 | 8 | private function applicableFeature(string $method): ?Feature |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return \Generator|Feature[] |
||
| 30 | */ |
||
| 31 | 8 | private function buildFeatures(): \Generator |
|
| 37 | |||
| 38 | 8 | public function __call($method, $arguments) |
|
| 45 | } |
||
| 46 |