Files
This commit is contained in:
@ -21,7 +21,7 @@ interface Model {
|
||||
* @param array $definitions array of conditions for connecting to the child table
|
||||
* @return array|null
|
||||
*/
|
||||
public function parentOf(string $child_class, array $definitions): ?array;
|
||||
public function parentOf(string $child_class, array $definitions): bool|array;
|
||||
|
||||
/**
|
||||
* Get parent model of class {$parent_class}
|
||||
@ -29,7 +29,7 @@ interface Model {
|
||||
* @param array $definitions array of conditions for connecting to the parent table
|
||||
* @return Model|null
|
||||
*/
|
||||
public function childOf(string $parent_class, array $definitions): ?Model;
|
||||
public function childOf(string $parent_class, array $definitions): bool|Model;
|
||||
|
||||
/**
|
||||
* Get all siblings of class {$sibling_class}
|
||||
|
Reference in New Issue
Block a user