Issues (82)

src/RelationInterface.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cycle\Schema;
6
7
use Cycle\Schema\Exception\RelationException;
8
use Cycle\Schema\Relation\OptionSchema;
9
10
/**
11
 * Carries information about particular relation and table declaration required to properly
12
 * map two or more entities.
13
 */
14
interface RelationInterface extends SchemaModifierInterface
15
{
16
    /**
17
     * Create relation version linked to specific entity context.
18
     *
19
     * @param non-empty-string $source
0 ignored issues
show
Documentation Bug introduced by
The doc comment non-empty-string at position 0 could not be parsed: Unknown type name 'non-empty-string' at position 0 in non-empty-string.
Loading history...
20
     * @param non-empty-string $target
21
     *
22
     * @throws RelationException
23
     */
24
    public function withContext(
25
        string $name,
26
        string $source,
27
        string $target,
28
        OptionSchema $options,
29
    ): self;
30
}
31