src/Classes/DataMapper/Video/VideoListingDataMapper.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Classes\DataMapper\Video;
  3. use Factory\SupportBundle\Contract\DataMapper\AbstractDataMapper;
  4. class VideoListingDataMapper extends AbstractDataMapper
  5. {
  6.     public function toArray($request)
  7.     {
  8.         return [
  9.             'id' => $this->getId(),
  10.             'title' => $this->getTitle(),
  11.             'content' => strip_tags($this->getContent()),
  12.             'feature_image' => $this->getFeatureImage(),
  13.             'video_source' => $this->getVideoSource()
  14.         ];
  15.     }
  16. }