/** * @see JsonSerializable::jsonSerialize() * Since the JsonSerializable interface is not available in * PHP < 5.4 this class does not 'implement' it but only provides * the method of this interface */ public function jsonSerialize() { $itemData = parent::jsonSerialize(); $itemData['imageFilename'] = $this->imageFilename; $itemData['imageText'] = $this->imageText; return $itemData; }
/** * @see JsonSerializable::jsonSerialize() * Since the JsonSerializable interface is not available in * PHP < 5.4 this class does not 'implement' it but only provides * the method of this interface */ public function jsonSerialize() { $itemData = parent::jsonSerialize(); $itemData['movieFilename'] = $this->movieFilename; return $itemData; }