| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Image extends BlockElement |
||
| 8 | { |
||
| 9 | use ImageTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Block type. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $type = 'image'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Internal attribute to property map. |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected static $availableAttributes = [ |
||
| 24 | 'image_url' => 'url', |
||
| 25 | 'alt_text' => 'alt_text', |
||
| 26 | 'title' => 'title', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Convert the block to its array representation. |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | 2 | public function toArray() |
|
| 49 |