for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cycle\Annotated\Annotation\Relation;
use JetBrains\PhpStorm\ExpectedValues;
final class BelongsTo
{
public function __construct(
string $target,
bool $cascade = true,
bool $nullable = false,
string $innerKey = '{relationName}_{outerKey}',
string $outerKey = null,
bool $fkCreate = true,
#[ExpectedValues(values: ['NO ACTION', 'CASCADE', 'SET NULL'])]
string $fkAction = 'CASCADE',
bool $indexCreate = true,
#[ExpectedValues(values: ['lazy', 'eager'])]
string $load = 'lazy',
// Inverse $inverse = null, // can be uncommented for compatibility with php 8.1
) {
}