Doctrine\ODM\OrientDB\Caster\Caster::__construct PHP Метод

__construct() публичный Метод

Instantiates a new Caster.
public __construct ( Hydrator $hydrator, Cached $inflector, mixed $value = null, string $dateClass = '\DateTime' )
$hydrator Doctrine\ODM\OrientDB\Mapper\Hydration\Hydrator
$inflector Doctrine\OrientDB\Util\Inflector\Cached
$value mixed
$dateClass string The class used to cast dates and datetimes
    public function __construct(Hydrator $hydrator, Inflector $inflector, $value = null, $dateClass = '\\DateTime')
    {
        $this->hydrator = $hydrator;
        $this->inflector = $inflector;
        $this->assignDateClass($dateClass);
        if ($value) {
            $this->setValue($value);
        }
    }