| 1 | <?php |
||
| 7 | class Redirect implements JsonSerializable { |
||
| 8 | |||
| 9 | private $from; |
||
| 10 | private $to; |
||
| 11 | |||
| 12 | public function __construct( Title $from, Title $to ) { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return Title |
||
| 19 | */ |
||
| 20 | public function getFrom() { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return Title |
||
| 26 | */ |
||
| 27 | public function getTo() { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
| 33 | */ |
||
| 34 | public function jsonSerialize() { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param array $json |
||
| 43 | * |
||
| 44 | * @return self |
||
| 45 | */ |
||
| 46 | public static function jsonDeserialize( $json ) { |
||
| 52 | |||
| 53 | } |
||
| 54 |