| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class TextContent implements \JsonSerializable |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Text|null |
||
| 12 | */ |
||
| 13 | public $primaryText; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Text|null |
||
| 17 | */ |
||
| 18 | public $secondaryText; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Text|null |
||
| 22 | */ |
||
| 23 | public $tertiaryText; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param Text|null $primaryText |
||
| 27 | * @param Text|null $secondaryText |
||
| 28 | * @param Text|null $tertiaryText |
||
| 29 | * |
||
| 30 | * @return TextContent |
||
| 31 | */ |
||
| 32 | public static function create($primaryText = null, $secondaryText = null, $tertiaryText = null): self |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function jsonSerialize() |
||
| 63 |