@@ 22-57 (lines=36) @@ | ||
19 | /** |
|
20 | * @author GeLo <[email protected]> |
|
21 | */ |
|
22 | class KmlLayer implements ExtendableInterface, OptionsAwareInterface |
|
23 | { |
|
24 | use OptionsAwareTrait; |
|
25 | use VariableAwareTrait; |
|
26 | ||
27 | /** |
|
28 | * @var string |
|
29 | */ |
|
30 | private $url; |
|
31 | ||
32 | /** |
|
33 | * @param string $url |
|
34 | * @param mixed[] $options |
|
35 | */ |
|
36 | public function __construct($url, array $options = []) |
|
37 | { |
|
38 | $this->setUrl($url); |
|
39 | $this->addOptions($options); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @return string |
|
44 | */ |
|
45 | public function getUrl() |
|
46 | { |
|
47 | return $this->url; |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * @param string $url |
|
52 | */ |
|
53 | public function setUrl($url) |
|
54 | { |
|
55 | $this->url = $url; |
|
56 | } |
|
57 | } |
|
58 |
@@ 22-57 (lines=36) @@ | ||
19 | /** |
|
20 | * @author GeLo <[email protected]> |
|
21 | */ |
|
22 | class Rectangle implements ExtendableInterface, OptionsAwareInterface |
|
23 | { |
|
24 | use OptionsAwareTrait; |
|
25 | use VariableAwareTrait; |
|
26 | ||
27 | /** |
|
28 | * @var Bound |
|
29 | */ |
|
30 | private $bound; |
|
31 | ||
32 | /** |
|
33 | * @param mixed[] $options |
|
34 | */ |
|
35 | public function __construct(Bound $bound, array $options = []) |
|
36 | { |
|
37 | $this->setBound($bound); |
|
38 | $this->addOptions($options); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @return Bound |
|
43 | */ |
|
44 | public function getBound() |
|
45 | { |
|
46 | return $this->bound; |
|
47 | } |
|
48 | ||
49 | public function setBound(Bound $bound) |
|
50 | { |
|
51 | $this->bound = $bound; |
|
52 | } |
|
53 | } |
|
54 |