| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\Framework\Models\ValueObjects; |
| 4 |
|
| 5 |
use Give\Framework\Support\ValueObjects\Enum; |
| 6 |
|
| 7 |
/** |
| 8 |
* Model Relationships |
| 9 |
* |
| 10 |
* @since 2.19.6 |
| 11 |
* |
| 12 |
* @method static HAS_ONE(); |
| 13 |
* @method static HAS_MANY(); |
| 14 |
* @method static MANY_TO_MANY(); |
| 15 |
* @method static BELONGS_TO(); |
| 16 |
* @method static BELONGS_TO_MANY(); |
| 17 |
*/ |
| 18 |
class Relationship extends Enum |
| 19 |
{ |
| 20 |
const HAS_ONE = 'has-one'; |
| 21 |
const HAS_MANY = 'has-many'; |
| 22 |
const MANY_TO_MANY = 'many-to-many'; |
| 23 |
const BELONGS_TO = 'belongs-to'; |
| 24 |
const BELONGS_TO_MANY = 'belongs-to-many'; |
| 25 |
} |
| 26 |
|