1 | <?php |
||
8 | final class Sha1Strategy implements KeyStrategyInterface |
||
9 | { |
||
10 | /** @var IdentifierFlattener */ |
||
11 | private $flattener; |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $prefix; |
||
16 | |||
17 | /** |
||
18 | * Sha1Strategy constructor. |
||
19 | * |
||
20 | * @param IdentifierFlattener $flattener |
||
21 | * @param string $prefix |
||
22 | */ |
||
23 | public function __construct(IdentifierFlattener $flattener, $prefix = '') |
||
28 | |||
29 | /** {@inheritdoc} */ |
||
30 | public function getEntityPrefix(ApiMetadata $metadata) |
||
34 | |||
35 | /** {@inheritdoc} */ |
||
36 | public function getEntityKey(ApiMetadata $metadata, array $identifier) |
||
42 | } |
||
43 |