Failed Conditions
Pull Request — release-11.1.x (#3164)
by
unknown
17:11
created

getForcedChangeTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace ApacheSolrForTypo3\Solr\Event;
5
6
7
use TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface;
8
9
/**
10
 *
11
 */
12
class BeforeDomainObjectObserverUpdate
13
{
14
    /**
15
     * @var DomainObjectInterface
16
     */
17
    protected $object;
18
19
    /**
20
     * @var int
21
     */
22
    protected $forcedChangeTime;
23
24
    /**
25
     * BeforeDomainObjectObserverUpdate constructor.
26
     *
27
     * @param DomainObjectInterface $object
28
     * @param int $forcedChangeTime
29
     */
30
    public function __construct(
31
        DomainObjectInterface $object,
32
        int $forcedChangeTime
33
    ) {
34
        $this->object = $object;
35
        $this->forcedChangeTime = $forcedChangeTime;
36
    }
37
38
    /**
39
     * @return DomainObjectInterface
40
     */
41
    public function getObject(): DomainObjectInterface
42
    {
43
        return $this->object;
44
    }
45
46
    /**
47
     * @param DomainObjectInterface $object
48
     */
49
    public function setObject(DomainObjectInterface $object): void
50
    {
51
        $this->object = $object;
52
    }
53
54
    /**
55
     * @return int
56
     */
57
    public function getForcedChangeTime(): int
58
    {
59
        return $this->forcedChangeTime;
60
    }
61
62
    /**
63
     * @param int $forcedChangeTime
64
     */
65
    public function setForcedChangeTime(int $forcedChangeTime): void
66
    {
67
        $this->forcedChangeTime = $forcedChangeTime;
68
    }
69
}
70