| Total Complexity | 7 |
| Total Lines | 84 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class Illustration 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 | * @return int |
||
| 39 | */ |
||
| 40 | public function getId(): int |
||
| 41 | { |
||
| 42 | return $this->id; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param int $id |
||
| 47 | * |
||
| 48 | * @return Illustration |
||
| 49 | */ |
||
| 50 | public function setId(int $id): Illustration |
||
| 51 | { |
||
| 52 | $this->id = $id; |
||
| 53 | |||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getName(): string |
||
| 61 | { |
||
| 62 | return $this->name; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param string $name |
||
| 67 | * |
||
| 68 | * @return Illustration |
||
| 69 | */ |
||
| 70 | public function setName(string $name): Illustration |
||
| 71 | { |
||
| 72 | $this->name = $name; |
||
| 73 | |||
| 74 | return $this; |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Resource identifier. |
||
| 79 | * |
||
| 80 | * @return int |
||
| 81 | */ |
||
| 82 | public function getResourceIdentifier(): int |
||
| 85 | } |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | public function getResourceName(): string |
||
| 91 | { |
||
| 92 | return $this->getName(); |
||
| 93 | } |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return string |
||
| 97 | */ |
||
| 98 | public function getToolName(): string |
||
| 101 | } |
||
| 102 | } |
||
| 103 |