| 1 | <?php |
||
| 30 | class Uuid implements UuidInterface, UtilityInterface |
||
| 31 | { |
||
| 32 | use UtilityTrait; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Default vendor code |
||
| 36 | * |
||
| 37 | * @var string |
||
| 38 | * @access protected |
||
| 39 | */ |
||
| 40 | protected $vendor = '0001'; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * remaining part |
||
| 44 | * |
||
| 45 | * @var string |
||
| 46 | * @access protected |
||
| 47 | */ |
||
| 48 | protected $remain = '0000'; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Instances |
||
| 52 | * |
||
| 53 | * @var UuidInterface[] |
||
| 54 | * @access private |
||
| 55 | */ |
||
| 56 | private static $instances = []; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritDoc} |
||
| 60 | */ |
||
| 61 | public static function get( |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Get instance |
||
| 77 | * |
||
| 78 | * return Uuid |
||
| 79 | * @access protected |
||
| 80 | * @static |
||
| 81 | */ |
||
| 82 | protected static function getInstance() |
||
| 90 | } |
||
| 91 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: