| 1 | <?php |
||
| 19 | final class ResourceResolver implements ResourceResolverInterface |
||
| 20 | { |
||
| 21 | /** @var RepositoryInterface */ |
||
| 22 | private $repository; |
||
| 23 | |||
| 24 | /** @var FactoryInterface */ |
||
| 25 | private $factory; |
||
| 26 | |||
| 27 | /** @var string */ |
||
| 28 | private $uniqueColumn; |
||
| 29 | |||
| 30 | public function __construct(RepositoryInterface $repository, FactoryInterface $factory, string $uniqueColumn) |
||
| 36 | |||
| 37 | public function getResource(string $identifier, string $factoryMethod = 'createNew'): ResourceInterface |
||
| 46 | } |
||
| 47 |