Issues (3936)

Classes/Domain/Model/EditingLock.php (1 issue)

1
<?php
2
namespace EWW\Dpf\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
 * Class EditingLock
19
 *
20
 * Model for the document locking mechanism in case of a document being edited
21
 *
22
 * @package EWW\Dpf\Domain\Model
23
 */
24
class EditingLock extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
25
{
26
    /**
27
     * documentIdentifier : A document uid or a fedoraPid object identifier.
28
     *
29
     * @var string
30
     */
31
    protected $documentIdentifier = '';
32
33
    /**
34
     * editorUid : Uid of the editor frontend user.
35
     *
36
     * @var integer
37
     */
38
    protected $editorUid = 0;
39
40
    /**
41
     * Gets the document identifier
42
     *
43
     * @return int
44
     */
45
    public function getDocumentIdentifier()
46
    {
47
        return $this->documentIdentifier;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->documentIdentifier returns the type string which is incompatible with the documented return type integer.
Loading history...
48
    }
49
50
    /**
51
     * Sets the document identifier
52
     *
53
     * @param int $documentIdentifier
54
     */
55
    public function setDocumentIdentifier($documentIdentifier)
56
    {
57
        $this->documentIdentifier = $documentIdentifier;
58
    }
59
60
    /**
61
     * Gets the editor uid
62
     *
63
     * @return int
64
     */
65
    public function getEditorUid()
66
    {
67
        return $this->editorUid;
68
    }
69
70
    /**
71
     * Sets the editor uid
72
     *
73
     * @param int $editorUid
74
     */
75
    public function setEditorUid($editorUid)
76
    {
77
        $this->editorUid = $editorUid;
78
    }
79
80
}