src/Types/AbstractDateTime.php
public function set($value)
    {
        if (!is_object($value) || !($value instanceof \DateTime)) {
            throw new \InvalidArgumentException('A date and time value was expected');
        }
        $this->value = $value;
    }
public function set($value)
    {
        if (!is_object($value) || !($value instanceof \DateTime)) {
            throw new \InvalidArgumentException('A date and time value was expected');
        }
        $this->value = $value;
    }
/ \copydoc fpoirotte::XRL::Types::AbstractType::set()