[FEATURE] Integrate basic file abstraction layer models
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Domain / Model / AbstractFileFolder.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2012 Oliver Hader <oliver.hader@typo3.org>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25 /**
26 * A file object (File Abstraction Layer)
27 *
28 * @package Extbase
29 * @subpackage Domain\Model
30 * @scope prototype
31 * @entity
32 * @api experimental! This class is experimental and subject to change!
33 */
34 abstract class Tx_Extbase_Domain_Model_AbstractFileFolder extends Tx_Extbase_DomainObject_AbstractEntity {
35 /**
36 * @var t3lib_file_ResourceInterface|t3lib_file_Folder|t3lib_file_AbstractFile
37 */
38 protected $object;
39
40 /**
41 * @param t3lib_file_ResourceInterface $object
42 */
43 public function setObject(t3lib_file_ResourceInterface $object) {
44 $this->object = $object;
45 }
46
47 /**
48 * @return t3lib_file_ResourceInterface|t3lib_file_Folder|t3lib_file_AbstractFile
49 */
50 public function getObject() {
51 return $this->object;
52 }
53 }
54 ?>