Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class RefreshTokenIdType extends Type |
||
22 | { |
||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function convertToDatabaseValue($value, AbstractPlatform $platform): string |
||
27 | { |
||
28 | Assertion::isInstanceOf($value, RefreshTokenId::class, 'Invalid object'); |
||
29 | |||
30 | return $value->getValue(); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function convertToPHPValue($value, AbstractPlatform $platform): RefreshTokenId |
||
37 | { |
||
38 | return new RefreshTokenId($value); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string |
||
45 | { |
||
46 | return $platform->getClobTypeDeclarationSQL($fieldDeclaration); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getName(): string |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function requiresSQLCommentHint(AbstractPlatform $platform): bool |
||
63 | } |
||
64 | } |
||
65 |