Issues (590)

src/Schema/StructureUpgraderResolverInterface.php (2 issues)

1
<?php
2
3
namespace Bdf\Prime\Schema;
4
5
/**
6
 * Resolve and create upgrader instances
7
 */
8
interface StructureUpgraderResolverInterface
9
{
10
    /**
11
     * Get a structure upgrader instance from a mapper class
12
     *
13
     * @param class-string $mapperClassName The mapper class name
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
14
     * @param bool $force Force usage of effective upgrader even if schema manager is disabled
15
     *
16
     * @return StructureUpgraderInterface|null Upgrader instance, or null if the class name is not a valid mapper class
17
     */
18
    public function resolveByMapperClass(string $mapperClassName, bool $force = false): ?StructureUpgraderInterface;
19
20
    /**
21
     * Get a structure upgrader instance from a domain class (i.e. entity)
22
     *
23
     * @param class-string $className The class name
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
24
     * @param bool $force Force usage of effective upgrader even if schema manager is disabled
25
     *
26
     * @return StructureUpgraderInterface Upgrader instance, or null if the class is not related to a repository
27
     */
28
    public function resolveByDomainClass(string $className, bool $force = false): ?StructureUpgraderInterface;
29
}
30