| 1 | <?php |
||
| 8 | class TwitterDelete implements TwitterDatedObject |
||
| 9 | { |
||
| 10 | const TWEET = 'tweet'; |
||
| 11 | const DM = 'direct message'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $type; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | private $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | private $userId; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var \DateTimeInterface |
||
| 30 | */ |
||
| 31 | private $date; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor. |
||
| 35 | */ |
||
| 36 | 24 | public function __construct() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return \DateTimeInterface |
||
| 42 | */ |
||
| 43 | 15 | public function getDate() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | 15 | public function getId() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return int |
||
| 58 | */ |
||
| 59 | 15 | public function getUserId() |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | 15 | public function getType() |
|
| 71 | |||
| 72 | /** |
||
| 73 | * @return string |
||
| 74 | */ |
||
| 75 | 3 | public function __toString() |
|
| 79 | |||
| 80 | /** |
||
| 81 | * Static constructor. |
||
| 82 | * |
||
| 83 | * @param string $type |
||
| 84 | * @param int $id |
||
| 85 | * @param int $userId |
||
| 86 | * @param \DateTimeInterface $date |
||
| 87 | * |
||
| 88 | * @return TwitterDelete |
||
| 89 | */ |
||
| 90 | 24 | public static function create($type, $id, $userId, \DateTimeInterface $date) |
|
| 103 | } |
||
| 104 |