Completed
Push — master ( c900fd...3de95d )
by
unknown
48:49 queued 30:46
created

AbstractFileCollection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
namespace TYPO3\CMS\Extbase\Domain\Model;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
/**
18
 * A file object (File Abstraction Layer)
19
 *
20
 * @internal experimental! This class is experimental and subject to change!
21
 * @deprecated since TYPO3 10.4, will be removed in version 11.0
22
 */
23
abstract class AbstractFileCollection extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
24
{
25
    public function __construct()
26
    {
27
        trigger_error(
28
            __CLASS__ . ' is deprecated since TYPO3 10.4 and will be removed in version 11.0',
29
            E_USER_DEPRECATED
30
        );
31
    }
32
33
    /**
34
     * @var \TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection
35
     */
36
    protected $object;
37
38
    /**
39
     * @param \TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection $object
40
     */
41
    public function setObject(\TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection $object)
42
    {
43
        $this->object = $object;
44
    }
45
46
    /**
47
     * @return \TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection
48
     */
49
    public function getObject()
50
    {
51
        return $this->object;
52
    }
53
}
54