1 | <?php |
||
2 | /** |
||
3 | * |
||
4 | * This file is part of the Aggrego. |
||
5 | * (c) Tomasz Kunicki <[email protected]> |
||
6 | * |
||
7 | * For the full copyright and license information, please view the LICENSE |
||
8 | * file that was distributed with this source code. |
||
9 | * |
||
10 | */ |
||
11 | |||
12 | namespace Aggrego\FragmentedDataBoard\Board\Shard; |
||
13 | |||
14 | use Aggrego\Domain\Board\Key; |
||
15 | use Aggrego\Domain\Profile\Profile; |
||
16 | use Ramsey\Uuid\Uuid as RamseyUuid; |
||
17 | |||
18 | class InitialItem extends Item |
||
19 | { |
||
20 | /** @var Key */ |
||
21 | private $key; |
||
22 | |||
23 | public function __construct(Profile $profile, Key $key) |
||
24 | { |
||
25 | parent::__construct( |
||
26 | new Uuid(RamseyUuid::uuid4()->toString()), |
||
0 ignored issues
–
show
|
|||
27 | $profile |
||
28 | ); |
||
29 | $this->key = $key; |
||
30 | } |
||
31 | |||
32 | public function getKey(): Key |
||
33 | { |
||
34 | return $this->key; |
||
35 | } |
||
36 | } |
||
37 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.