for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Railt package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Railt\Reflection\Definition\Dependent;
use Railt\Reflection\AbstractTypeDefinition;
use Railt\Reflection\Contracts\Definition\Dependent\DependentTypeDefinition;
use Railt\Reflection\Contracts\Definition\TypeDefinition;
use Railt\Reflection\Document;
* Class AbstractDependentTypeDefinition
abstract class AbstractDependentTypeDefinition extends AbstractTypeDefinition implements DependentTypeDefinition
{
* @var TypeDefinition
protected $parent;
* AbstractDependentTypeDefinition constructor.
* @param TypeDefinition $parent
* @param Document $document
* @param int $offset
* @param string $name
public function __construct(TypeDefinition $parent, Document $document, int $offset, string $name)
$this->parent = $parent;
parent::__construct($document, $offset, $name);
}
* @return TypeDefinition
public function getParent(): TypeDefinition
return $this->parent;