| 1 | <?php |
||
| 8 | class TwitterDirectMessage extends AbstractMessage implements TwitterMessage |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var TwitterUser |
||
| 12 | */ |
||
| 13 | private $recipient; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Constructor. |
||
| 17 | */ |
||
| 18 | 21 | public function __construct() |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @return TwitterUser |
||
| 24 | */ |
||
| 25 | 9 | public function getRecipient() |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 3 | public function __toString() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Static constructor. |
||
| 40 | * |
||
| 41 | * @param TwitterMessageId $id |
||
| 42 | * @param TwitterUser $recipient |
||
| 43 | * @param TwitterUser $sender |
||
| 44 | * @param string $text |
||
| 45 | * @param \DateTimeInterface $createdAt |
||
| 46 | * @param TwitterEntities $entities |
||
| 47 | * |
||
| 48 | * @return TwitterDirectMessage |
||
| 49 | */ |
||
| 50 | 21 | public static function create( |
|
| 66 | } |
||
| 67 |