| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CMSNicetiesLinkButton extends ReadonlyField |
||
| 12 | { |
||
| 13 | protected $link = ''; |
||
| 14 | |||
| 15 | protected $label = ''; |
||
| 16 | |||
| 17 | protected $targetBlank = false; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Creates a new field. |
||
| 21 | * |
||
| 22 | * @param string $name the internal field name, passed to forms |
||
| 23 | * @param null|string|ViewableData $label the human-readable field label |
||
| 24 | * @param mixed $link the value of the field |
||
| 25 | */ |
||
| 26 | public function __construct($name, $label = null, $link = null, ?bool $targetBlank = false) |
||
| 34 | } |
||
| 35 | |||
| 36 | public function Value() |
||
| 51 |