Issues (590)

src/Entity/ImportableInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Bdf\Prime\Entity;
4
5
use Bdf\Prime\Entity\Hydrator\HydratorInterface;
6
7
/**
8
 * Interface for entities which is importable
9
 */
10
interface ImportableInterface
11
{
12
    /**
13
     * Hydrate the current entity
14
     * @see HydratorInterface::hydrate()
15
     *
16
     * @param array $data
17
     *
18
     * @return void
19
     */
20
    public function import(array $data): void;
21
22
    /**
23
     * Export attributes to an array
24
     * @see HydratorInterface::extract()
25
     *
26
     * @param list<string> $attributes
0 ignored issues
show
The type Bdf\Prime\Entity\list was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
27
     *
28
     * @return array
29
     */
30
    public function export(array $attributes = []): array;
31
}
32