action = $action; $this->timeSpec = $timeSpec; $this->timeValue = $timeValue; } /** * @return LifecycleAction */ public function getAction() { return $this->action; } /** * @param string $action */ public function setAction($action) { $this->action = $action; } /** * @return string */ public function getTimeSpec() { return $this->timeSpec; } /** * @param string $timeSpec */ public function setTimeSpec($timeSpec) { $this->timeSpec = $timeSpec; } /** * @return string */ public function getTimeValue() { return $this->timeValue; } /** * @param string $timeValue */ public function setTimeValue($timeValue) { $this->timeValue = $timeValue; } /** * appendToXml 把actions插入到xml中 * * @param \SimpleXMLElement $xmlRule */ public function appendToXml(&$xmlRule) { $xmlAction = $xmlRule->addChild($this->action); $xmlAction->addChild($this->timeSpec, $this->timeValue); } private $action; private $timeSpec; private $timeValue; }