| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait HasUrl |
||
| 14 | { |
||
| 15 | #[ORM\Column(type: 'string', length: 2000, options: ['default' => ''])] |
||
| 16 | private string $url = ''; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Set url. |
||
| 20 | */ |
||
| 21 | #[API\Input(type: 'Url')] |
||
| 22 | public function setUrl(string $url): void |
||
| 23 | { |
||
| 24 | $this->url = $url; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get url. |
||
| 29 | */ |
||
| 30 | #[API\Field(type: 'Url')] |
||
| 34 | } |
||
| 35 | } |
||
| 36 |