Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2namespace Apie\Core\ValueObjects\Fields;
3
4use Apie\Core\ValueObjects\Interfaces\ValueObjectInterface;
5use UnitEnum;
6
7interface FieldInterface
8{
9    public function fillField(ValueObjectInterface $instance, mixed $value): void;
10
11    public function fillMissingField(ValueObjectInterface $instance): void;
12
13    public function fromNative(ValueObjectInterface $instance, mixed $value): void;
14
15    public function getValue(ValueObjectInterface $instance): mixed;
16
17    /**
18     * @return mixed[]|string|int|float|bool|UnitEnum|null
19     */
20    public function toNative(ValueObjectInterface $instance): array|string|int|float|bool|UnitEnum|null;
21
22    public function isInitialized(ValueObjectInterface $instance): bool;
23
24    public function isOptional(): bool;
25
26    public function getTypehint(): string;
27}