‪TYPO3CMS  9.5
ReferenceEntity.php
Go to the documentation of this file.
1 <?php
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 
21 {
25  protected ‪$element;
26 
30  protected ‪$field;
31 
39  {
40  $this->element = ‪$element;
41  $this->field = ‪$field;
42  }
43 
49  public function ‪getElement()
50  {
51  return ‪$this->element;
52  }
53 
59  public function ‪getField()
60  {
61  return ‪$this->field;
62  }
63 
69  public function ‪__toString()
70  {
71  return $this->element . '.' . ‪$this->field;
72  }
73 }
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\$element
‪ElementEntity $element
Definition: ReferenceEntity.php:24
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity
Definition: ReferenceEntity.php:21
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\$field
‪string $field
Definition: ReferenceEntity.php:28
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\getElement
‪ElementEntity getElement()
Definition: ReferenceEntity.php:47
‪TYPO3\CMS\Workspaces\Dependency\ElementEntity
Definition: ElementEntity.php:24
‪TYPO3\CMS\Workspaces\Dependency
Definition: DependencyEntityFactory.php:2
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\getField
‪string getField()
Definition: ReferenceEntity.php:57
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\__toString
‪string __toString()
Definition: ReferenceEntity.php:67
‪TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\__construct
‪__construct(ElementEntity $element, $field)
Definition: ReferenceEntity.php:36