for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* components
*
* @author Wolfy-J
*/
namespace Spiral\ORM\Schemas\Definitions;
* Defines relation in schema.
final class RelationDefinition
{
* @var string
private $type;
private $target;
* @var array
private $options = [];
* @var bool
private $inverse = false;
* @param string $type
* @param string $target
* @param array $options
* @param bool $inverse
public function __construct(string $type, string $target, array $options, bool $inverse = false)
$inverse
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->type = $type;
$this->target = $target;
$this->options = $options;
}
* @return string
public function getType(): string
return $this->type;
public function getTarget(): string
return $this->target;
* @return array
public function getOptions(): array
return $this->options;
* @return bool
public function needInverse(): bool
return $this->inverse;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.