‪TYPO3CMS  10.4
ReferenceEntity.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
22 {
26  protected ‪$element;
27 
31  protected ‪$field;
32 
40  {
41  $this->element = ‪$element;
42  $this->field = ‪$field;
43  }
44 
50  public function ‪getElement()
51  {
52  return ‪$this->element;
53  }
54 
60  public function ‪getField()
61  {
62  return ‪$this->field;
63  }
64 
70  public function ‪__toString()
71  {
72  return $this->element . '.' . ‪$this->field;
73  }
74 }
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\$element
‪ElementEntity $element
Definition: ReferenceEntity.php:25
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity
Definition: ReferenceEntity.php:22
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\$field
‪string $field
Definition: ReferenceEntity.php:29
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\getElement
‪ElementEntity getElement()
Definition: ReferenceEntity.php:48
‪TYPO3\CMS\Workspaces\Dependency\ElementEntity
Definition: ElementEntity.php:25
‪TYPO3\CMS\Workspaces\Dependency
Definition: DependencyEntityFactory.php:16
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\getField
‪string getField()
Definition: ReferenceEntity.php:58
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\__toString
‪string __toString()
Definition: ReferenceEntity.php:68
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\__construct
‪__construct(ElementEntity $element, $field)
Definition: ReferenceEntity.php:37