/** * Implements JsonSerializable::jsonSerialize(). */ public function jsonSerialize() { $valid = !isset($this->preferredStartingPosition) || $this->validatePreferredStartingPosition($this->preferredStartingPosition); if (!$valid) { return NULL; } return parent::jsonSerialize(); }
/** * Implements JsonSerializable::jsonSerialize(). */ public function jsonSerialize() { $valid = !isset($this->initialAlpha) || $this->validateInitialAlpha($this->initialAlpha); if (!$valid) { return NULL; } return parent::jsonSerialize(); }
/** * Implements __construct(). */ public function __construct() { return parent::__construct('appear'); }