Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Relation1mTransformer | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| supports | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** @license For full copyright and license information, please see the LICENSE.md file. */ |
| 6 | |
| 7 | namespace App\Core\Engine\Application\Transformer; |
| 8 | |
| 9 | defined('AMMONLY_APP') || exit('Direct script access is forbidden.'); |
| 10 | |
| 11 | /** |
| 12 | * Direct 1:M Entity Reference UiType Transformer. |
| 13 | * |
| 14 | * Handles UiType: relation_1m (ID: 7007). |
| 15 | * Maps directly to a single target module by integer foreign key. |
| 16 | * |
| 17 | * @package App\Core\Engine\Application\Transformer |
| 18 | */ |
| 19 | final class Relation1mTransformer extends AbstractIntegerReferenceTransformer |
| 20 | { |
| 21 | /** |
| 22 | * {@inheritdoc} |
| 23 | */ |
| 24 | public function supports(string $uitypeName): bool |
| 25 | { |
| 26 | return $uitypeName === 'relation_1m'; |
| 27 | } |
| 28 | } |