1 | <?php |
||
18 | class License extends \hidev\base\Component |
||
19 | { |
||
20 | /** |
||
21 | * The license. |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $_license; |
||
25 | |||
26 | /** |
||
27 | * Set license. |
||
28 | * @param string $value |
||
29 | */ |
||
30 | 4 | public function setLicense($value) |
|
34 | |||
35 | /** |
||
36 | * Get license. |
||
37 | * @return string |
||
38 | */ |
||
39 | 4 | public function getLicense() |
|
40 | { |
||
41 | 4 | if ($this->_license === null) { |
|
42 | $this->_license = $this->take('package')->getLicense(); |
||
43 | } |
||
44 | |||
45 | 4 | return $this->_license; |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * Get license template. |
||
50 | * @return string |
||
51 | */ |
||
52 | 1 | public function getTemplate() |
|
56 | |||
57 | /** |
||
58 | * Returns URL to license description. |
||
59 | * @return string |
||
60 | */ |
||
61 | 1 | public function getUrl() |
|
67 | } |
||
68 |