| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | 21 | public static function create( |
|
| 51 | TwitterMessageId $id, |
||
| 52 | TwitterUser $sender, |
||
| 53 | TwitterUser $recipient, |
||
| 54 | $text, |
||
| 55 | \DateTimeInterface $createdAt, |
||
| 56 | TwitterEntities $entities |
||
| 57 | ) { |
||
| 58 | 21 | $obj = new self(); |
|
| 59 | |||
| 60 | 21 | $obj->init($id, $sender, $text, $entities, $createdAt); |
|
| 61 | |||
| 62 | 21 | $obj->recipient = $recipient; |
|
| 63 | |||
| 64 | 21 | return $obj; |
|
| 65 | } |
||
| 66 | } |
||
| 67 |