1 | <?php |
||
29 | final class AssetImage extends AssetsAbstract implements AssetImageInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Image crossorigin |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $attr_crossorigin; |
||
38 | |||
39 | /** |
||
40 | * Image crossorigin |
||
41 | * |
||
42 | * Asset constructor set asset ID |
||
43 | * |
||
44 | * @param string $id |
||
45 | */ |
||
46 | 1 | public function __construct(string $id) |
|
51 | |||
52 | /** |
||
53 | * Set crossorigin attribute of the image |
||
54 | * |
||
55 | * @param string $crossorigin |
||
56 | * @return AssetImageInterface |
||
57 | */ |
||
58 | 1 | public function crossorigin(string $crossorigin = 'anonymous'): AssetImageInterface |
|
63 | } |
||
64 |