| Total Complexity | 5 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class CShortcut extends AbstractResource implements ResourceInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | * |
||
| 23 | * @ORM\Column(name="id", type="integer") |
||
| 24 | * @ORM\Id |
||
| 25 | * @ORM\GeneratedValue |
||
| 26 | */ |
||
| 27 | protected $id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @Assert\NotBlank |
||
| 31 | * |
||
| 32 | * @ORM\Column(name="name", type="string", length=255, nullable=false) |
||
| 33 | */ |
||
| 34 | protected $name; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getName(): string |
||
| 40 | { |
||
| 41 | return $this->name; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $name |
||
| 46 | * |
||
| 47 | * @return CShortcut |
||
| 48 | */ |
||
| 49 | public function setName(string $name): CShortcut |
||
| 50 | { |
||
| 51 | $this->name = $name; |
||
| 52 | |||
| 53 | return $this; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Resource identifier. |
||
| 58 | */ |
||
| 59 | public function getResourceIdentifier(): int |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getResourceName(): string |
||
| 67 | } |
||
| 68 | |||
| 69 | public function __toString(): string |
||
| 72 | } |
||
| 73 | } |
||
| 74 |