for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Valkyrja Framework package.
*
* (c) Melech Mizrachi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Valkyrja\Orm\Data\Join;
use Valkyrja\Orm\Data\Join;
use Valkyrja\Orm\Enum\Comparison;
use Valkyrja\Orm\Enum\JoinOperator;
use Valkyrja\Orm\Enum\JoinType;
/**
* Class RightJoin.
* @author Melech Mizrachi
readonly class RightJoin extends Join
{
* @param non-empty-string $table The join table
non-empty-string
0
* @param non-empty-string $column The column to compare
* @param non-empty-string $joinColumn The join table column
public function __construct(
public string $table,
public string $column,
public string $joinColumn,
public Comparison $comparison,
public JoinOperator $operator,
) {
parent::__construct(
table: $table,
column: $column,
joinColumn: $joinColumn,
comparison: $comparison,
operator: $operator,
type: JoinType::RIGHT,
);
}