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 ManyToMany
{
public function __construct(
string $target,
string $though,
bool $cascade = true,
bool $nullable = false,
string $innerKey = null,
string $outerKey = '{parentRole}_{innerKey}',
array $where = [],
array $orderBy = [],
string $thoughInnerKey = '{sourceRole}_{innerKey}',
string $thoughOuterKey = '{targetRole}_{outerKey}',
array $thoughWhere = [],
bool $fkCreate = true,
#[ExpectedValues(values: ['NO ACTION', 'CASCADE', 'SET NULL'])]
string $fkAction = 'SET NULL',
bool $indexCreate = true,
#[ExpectedValues(values: ['lazy', 'eager'])]
string $load = 'lazy',
// Inverse $inverse = null, // can be uncommented for compatibility with php 8.1
) {
}