| Total Complexity | 8 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | class PersonalFile extends AbstractResource implements ResourceInterface |
||
| 18 | { |
||
| 19 | use TimestampableEntity; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | * |
||
| 24 | * @ORM\Column(name="id", type="integer") |
||
| 25 | * @ORM\Id |
||
| 26 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 27 | */ |
||
| 28 | protected $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | * |
||
| 33 | * @ORM\Column(name="name", type="string", length=255, nullable=false) |
||
| 34 | */ |
||
| 35 | protected $name; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Illustration constructor. |
||
| 39 | */ |
||
| 40 | public function __construct() |
||
| 41 | { |
||
| 42 | $this->name = 'personal_file'; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getId(): int |
||
| 46 | { |
||
| 47 | return $this->id; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function setId(int $id): PersonalFile |
||
| 51 | { |
||
| 52 | $this->id = $id; |
||
| 53 | |||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function getName(): string |
||
| 60 | } |
||
| 61 | |||
| 62 | public function setName(string $name): PersonalFile |
||
| 63 | { |
||
| 64 | $this->name = $name; |
||
| 65 | |||
| 66 | return $this; |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Resource identifier. |
||
| 71 | */ |
||
| 72 | public function getResourceIdentifier(): int |
||
| 75 | } |
||
| 76 | |||
| 77 | public function getResourceName(): string |
||
| 80 | } |
||
| 81 | |||
| 82 | public function __toString(): string |
||
| 87 |