/** * {@inheritdoc} * @return \DateTime */ public function generateStatic() { $dateTime = parent::generateStatic(); if (!$dateTime instanceof \DateTime) { $dateTime = new \DateTime($dateTime); } return $dateTime; }
/** * {@inheritdoc} * @return \MongoId */ public function generateStatic() { $mongoId = parent::generateStatic(); if (!$mongoId instanceof \MongoId) { $mongoId = new \MongoId($mongoId); } return $mongoId; }
/** * {@inheritdoc} * @return boolean */ public function generateStatic() { return (array) parent::generateStatic(); }
/** * {@inheritdoc} * @return float */ public function generateStatic() { return (double) parent::generateStatic(); }
/** * {@inheritdoc} * @return boolean */ public function generateStatic() { return (bool) parent::generateStatic(); }
/** * {@inheritdoc} * @return string */ public function generateStatic() { return (string) parent::generateStatic(); }