public function __construct($datetime = null) { if (false === $this->init($datetime)) { throw new InvalidArgumentException('Invalid argument type given. Constructor allows only integer, ' . 'null or MongoDB\\BSON\\UTCDateTime'); } }