Advertisement
Guest User

FAL/Model

a guest
Jul 29th, 2013
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.54 KB | None | 0 0
  1. <?php
  2. namespace Civit\Medialibrary\Domain\Model;
  3.  
  4. /***************************************************************
  5.  *  Copyright notice
  6.  *
  7.  *  (c) 2013
  8.  *  All rights reserved
  9.  *
  10.  *  This script is part of the TYPO3 project. The TYPO3 project is
  11.  *  free software; you can redistribute it and/or modify
  12.  *  it under the terms of the GNU General Public License as published by
  13.  *  the Free Software Foundation; either version 3 of the License, or
  14.  *  (at your option) any later version.
  15.  *
  16.  *  The GNU General Public License can be found at
  17.  *  http://www.gnu.org/copyleft/gpl.html.
  18.  *
  19.  *  This script is distributed in the hope that it will be useful,
  20.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  21.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22.  *  GNU General Public License for more details.
  23.  *
  24.  *  This copyright notice MUST APPEAR in all copies of the script!
  25.  ***************************************************************/
  26.  
  27. /**
  28.  *
  29.  *
  30.  * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
  31.  *
  32.  */
  33. class Entry extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
  34.  
  35.     /**
  36.      * Single file
  37.      * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
  38.      */
  39.     protected $file;
  40.  
  41.  
  42.     /**
  43.      * Files
  44.      * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
  45.      */
  46.     protected $files;
  47.    
  48.     /**
  49.     * __construct
  50.     *
  51.     * @return AbstractObject
  52.     */
  53.     public function __construct() {
  54.         $this->files = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
  55.     }
  56.    
  57.     /**
  58.      * Returns the file
  59.      *
  60.      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $file
  61.      */
  62.     public function getFile() {
  63.             return $this->file;
  64.     }
  65.    
  66.     /**
  67.      * Sets the file
  68.      *
  69.      * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $file
  70.      * @return void
  71.      */
  72.     public function setFile($file) {
  73.             $this->file = $file;
  74.     }
  75.  
  76.  
  77.     /**
  78.      * Returns the files
  79.      *
  80.      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $files
  81.      */
  82.     public function getFiles() {
  83.             return $this->files;
  84.     }
  85.  
  86.     /**
  87.      * Sets the files
  88.      *
  89.      * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $files
  90.      * @return void
  91.      */
  92.     public function setFiles($files) {
  93.             $this->files = $files;
  94.     }
  95.  
  96. }
  97. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement