1 | <?php |
||
12 | class Scope implements ScopeEntityInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | * @Id |
||
17 | * @Column(type="string", length=40) |
||
18 | */ |
||
19 | protected $identifier; |
||
20 | |||
21 | /** |
||
22 | * @var ArrayCollection $accessTokens |
||
23 | * @ManyToMany(targetEntity="AccessToken", mappedBy="scopes") |
||
24 | */ |
||
25 | protected $accessTokens; |
||
26 | |||
27 | 4 | public function __construct() |
|
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | 4 | public function getIdentifier() |
|
39 | |||
40 | /** |
||
41 | * @param string $identifier |
||
42 | */ |
||
43 | 4 | public function setIdentifier($identifier) |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 1 | function jsonSerialize() |
|
55 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.