1 | <?php namespace Arcanedev\EmbedVideo\Entities; |
||
11 | class Iframe |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Properties |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $pattern; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $queries; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $replacer; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | private $attributes; |
||
36 | |||
37 | /* ----------------------------------------------------------------- |
||
38 | | Constructor |
||
39 | | ----------------------------------------------------------------- |
||
40 | */ |
||
41 | /** |
||
42 | * Iframe constructor. |
||
43 | * |
||
44 | * @param string $pattern |
||
45 | * @param array $replacer |
||
46 | * @param array $queries |
||
47 | * @param array $attributes |
||
48 | */ |
||
49 | 21 | public function __construct($pattern, array $replacer = [], array $queries = [], array $attributes = []) |
|
56 | |||
57 | /* ----------------------------------------------------------------- |
||
58 | | Getters & Setters |
||
59 | | ----------------------------------------------------------------- |
||
60 | */ |
||
61 | /** |
||
62 | * Get iframe src value. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | 21 | public function src() |
|
76 | |||
77 | /* ----------------------------------------------------------------- |
||
78 | | Main Methods |
||
79 | | ----------------------------------------------------------------- |
||
80 | */ |
||
81 | /** |
||
82 | * Render the iframe. |
||
83 | * |
||
84 | * @return \Illuminate\Support\HtmlString |
||
85 | */ |
||
86 | 21 | public function render() |
|
90 | |||
91 | /** |
||
92 | * Convert the object to string. |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | public function __toString() |
||
100 | } |
||
101 |