<?php
namespace TYPO3\CMS\Extbase\Domain\Model;

/**
 * This file is part of the TYPO3 CMS project.
 *
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * The TYPO3 project - inspiring people to share!
 */
/**
 * A file object (File Abstraction Layer)
 *
 * @api experimental! This class is experimental and subject to change!
 */
abstract class AbstractFileFolder extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {

	/**
	 * @var \TYPO3\CMS\Core\Resource\ResourceInterface|\TYPO3\CMS\Core\Resource\AbstractFile|\TYPO3\CMS\Core\Resource\Folder|\TYPO3\CMS\Core\Resource\FileReference
	 */
	protected $originalResource;

	/**
	 * @param \TYPO3\CMS\Core\Resource\ResourceInterface $originalResource
	 */
	public function setOriginalResource(\TYPO3\CMS\Core\Resource\ResourceInterface $originalResource) {
		$this->originalResource = $originalResource;
	}

	/**
	 * @return \TYPO3\CMS\Core\Resource\ResourceInterface|\TYPO3\CMS\Core\Resource\Folder|\TYPO3\CMS\Core\Resource\AbstractFile
	 */
	public function getOriginalResource() {
		return $this->originalResource;
	}
}
