-
-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathRelation.php
More file actions
25 lines (16 loc) · 642 Bytes
/
Relation.php
File metadata and controls
25 lines (16 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
namespace Tempest\Database;
use Tempest\Database\QueryStatements\JoinStatement;
use Tempest\Database\QueryStatements\WhereExistsStatement;
use Tempest\Reflection\PropertyAttribute;
use Tempest\Support\Arr\ImmutableArray;
interface Relation extends PropertyAttribute
{
public string $name { get; }
public bool $withPropertyNameAlias { get; }
public function setParent(string $name): self;
public function withPropertyNameAlias(): self;
public function getSelectFields(): ImmutableArray;
public function getJoinStatement(): JoinStatement;
public function getExistsStatement(): WhereExistsStatement;
}