‪TYPO3CMS  ‪main
ReferenceEntity.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
26 {
28  protected string ‪$field;
29 
31  {
32  $this->element = ‪$element;
33  $this->field = ‪$field;
34  }
35 
39  public function ‪getElement(): ‪ElementEntity
40  {
41  return ‪$this->element;
42  }
43 
47  public function ‪getField(): string
48  {
49  return ‪$this->field;
50  }
51 
55  public function ‪__toString(): string
56  {
57  return $this->element . '.' . ‪$this->field;
58  }
59 }
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\__construct
‪__construct(ElementEntity $element, string $field)
Definition: ReferenceEntity.php:30
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\$element
‪ElementEntity $element
Definition: ReferenceEntity.php:27
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\getElement
‪getElement()
Definition: ReferenceEntity.php:39
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity
Definition: ReferenceEntity.php:26
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\$field
‪string $field
Definition: ReferenceEntity.php:28
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\__toString
‪__toString()
Definition: ReferenceEntity.php:55
‪TYPO3\CMS\Workspaces\Dependency\ElementEntity
Definition: ElementEntity.php:30
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\getField
‪getField()
Definition: ReferenceEntity.php:47
‪TYPO3\CMS\Workspaces\Dependency
Definition: DependencyEntityFactory.php:18