| 1 | <?php |
||
| 10 | class RegistryEntry |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var DataProvider |
||
| 14 | */ |
||
| 15 | private $provider; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $index; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $type; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param DataProvider $provider |
||
| 29 | * @param string $index |
||
| 30 | * @param string $type |
||
| 31 | */ |
||
| 32 | 8 | public function __construct(DataProvider $provider, $index, $type) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Get provider |
||
| 41 | * |
||
| 42 | * @return DataProvider |
||
| 43 | */ |
||
| 44 | 4 | public function getProvider() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Get index |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | 5 | public function getIndex() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Get type |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 5 | public function getType() |
|
| 68 | |||
| 69 | 2 | public function match($index, $type) |
|
| 76 | } |
||
| 77 |