Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
methodtime.php
1<?php
9
11
14
15Loc::loadMessages(__FILE__);
16
17class MethodTime implements iMethod
18{
20 protected $dateTime;
21
23 private $letter;
24
30 public function __construct(Entity\Letter $letter)
31 {
32 $this->letter = $letter;
33 }
34
41 {
42 $this->dateTime = $dateTime;
43 }
44
50 public function getDateTime()
51 {
52 return $this->dateTime;
53 }
54
60 public function apply()
61 {
62 $this->letter->plan($this->dateTime);
63 }
64
70 public function revoke()
71 {
72 if (!$this->letter->getState()->isReady())
73 {
74 $this->letter->getState()->ready();
75 }
76 }
77
83 public function getCode()
84 {
85 return Method::TIME;
86 }
87}
static loadMessages($file)
Definition loc.php:64
setDateTime(DateTime $dateTime)
__construct(Entity\Letter $letter)