| @@ 22-37 (lines=16) @@ | ||
| 19 | /** |
|
| 20 | * @package Limoncello\Passport |
|
| 21 | */ |
|
| 22 | class Token extends \Limoncello\Passport\Entities\Token |
|
| 23 | { |
|
| 24 | use ArrayParserTrait, DbDateFormatTrait; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Constructor. |
|
| 28 | */ |
|
| 29 | public function __construct() |
|
| 30 | { |
|
| 31 | parent::__construct(); |
|
| 32 | ||
| 33 | if ($this->hasDynamicProperty(static::FIELD_ID) === true) { |
|
| 34 | $this->setScopeIdentifiers($this->parseArray($this->{static::FIELD_SCOPES})); |
|
| 35 | } |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| @@ 22-37 (lines=16) @@ | ||
| 19 | /** |
|
| 20 | * @package Limoncello\Passport |
|
| 21 | */ |
|
| 22 | class Token extends \Limoncello\Passport\Entities\Token |
|
| 23 | { |
|
| 24 | use ArrayParserTrait, DbDateFormatTrait; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Constructor. |
|
| 28 | */ |
|
| 29 | public function __construct() |
|
| 30 | { |
|
| 31 | parent::__construct(); |
|
| 32 | ||
| 33 | if ($this->hasDynamicProperty(static::FIELD_ID) === true) { |
|
| 34 | $this->setScopeIdentifiers($this->parseArray($this->{static::FIELD_SCOPES})); |
|
| 35 | } |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||