‪TYPO3CMS  ‪main
TraversableDomainObjectExample.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 
21 
22 class ‪TraversableDomainObjectExample extends ‪AbstractEntity implements \Iterator
23 {
24  public function ‪getUid(): ?int
25  {
26  return 1;
27  }
28 
29  public function ‪current(): mixed
30  {
31  return [];
32  }
33 
34  public function ‪next(): void {}
35 
36  public function ‪key(): mixed
37  {
38  return 1;
39  }
40 
41  public function ‪valid(): bool
42  {
43  return true;
44  }
45 
46  public function ‪rewind(): void {}
47 }
‪TYPO3Tests\TestDataMapper\Domain\Model\TraversableDomainObjectExample\getUid
‪getUid()
Definition: TraversableDomainObjectExample.php:24
‪TYPO3Tests\TestDataMapper\Domain\Model\TraversableDomainObjectExample\current
‪current()
Definition: TraversableDomainObjectExample.php:29
‪TYPO3Tests\TestDataMapper\Domain\Model\TraversableDomainObjectExample\rewind
‪rewind()
Definition: TraversableDomainObjectExample.php:46
‪TYPO3Tests\TestDataMapper\Domain\Model\TraversableDomainObjectExample\key
‪key()
Definition: TraversableDomainObjectExample.php:36
‪TYPO3Tests\TestDataMapper\Domain\Model\TraversableDomainObjectExample\valid
‪valid()
Definition: TraversableDomainObjectExample.php:41
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3Tests\TestDataMapper\Domain\Model\TraversableDomainObjectExample
Definition: TraversableDomainObjectExample.php:23
‪TYPO3Tests\TestDataMapper\Domain\Model
Definition: CustomDateTime.php:18
‪TYPO3Tests\TestDataMapper\Domain\Model\TraversableDomainObjectExample\next
‪next()
Definition: TraversableDomainObjectExample.php:34