-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cells.php
34 lines (27 loc) · 819 Bytes
/
Cells.php
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
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
/*
* This file is part of the QuidPHP package <https://quidphp.com>
* Author: Pierre-Philippe Emond <emondpph@gmail.com>
* License: https://github.com/quidphp/core/blob/master/LICENSE
*/
namespace Quid\Core;
use Quid\Orm;
// cells
// extended class for a collection of many cells within a same row
class Cells extends Orm\Cells
{
// trait
use _accessAlias;
// config
protected static array $config = [];
// tableFromFqcn
// retourne l'objet table à partir du fqcn de la classe
// envoie une erreur si la table n'existe pas
final public static function tableFromFqcn():Table
{
$value = (static::class !== self::class)? static::boot()->db()->table(static::class):null;
return static::typecheck($value,Table::class);
}
}
?>