|
<?php |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Eluceo\iCal\Component; |
|
|
|
use Eluceo\iCal\Component; |
|
use Eluceo\iCal\PropertyBag; |
|
|
|
|
|
|
|
|
|
class Timezone extends Component |
|
{ |
|
|
|
|
|
|
|
protected $timezone; |
|
|
|
public function __construct($timezone) |
|
{ |
|
$this->timezone = $timezone; |
|
} |
|
|
|
|
|
|
|
|
|
public function getType() |
|
{ |
|
return 'VTIMEZONE'; |
|
} |
|
|
|
|
|
|
|
|
|
public function buildPropertyBag() |
|
{ |
|
$propertyBag = new PropertyBag(); |
|
|
|
$propertyBag->set('TZID', $this->timezone); |
|
$propertyBag->set('X-LIC-LOCATION', $this->timezone); |
|
|
|
return $propertyBag; |
|
} |
|
|
|
public function getZoneIdentifier() |
|
{ |
|
return $this->timezone; |
|
} |
|
} |
|
|