| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Scope implements ScopeEntityInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | * @ORM\Id |
||
| 18 | * @ORM\Column(type="string", length=40) |
||
| 19 | */ |
||
| 20 | protected $identifier; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ArrayCollection $accessTokens |
||
| 24 | * @ORM\ManyToMany(targetEntity="AccessToken", mappedBy="scopes") |
||
| 25 | */ |
||
| 26 | protected $accessTokens; |
||
| 27 | |||
| 28 | public function __construct() |
||
| 29 | { |
||
| 30 | $this->accessTokens = new ArrayCollection(); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getIdentifier() |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $identifier |
||
| 43 | */ |
||
| 44 | public function setIdentifier($identifier) |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | function jsonSerialize() |
||
| 55 | } |
||
| 56 | } |
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.