/** * {@inheritdoc} * @return \DateTime */ protected function randomStaticValue() { $dateTime = parent::randomStaticValue(); if (!$dateTime instanceof \DateTime) { $dateTime = new DateTime($dateTime); } return $dateTime; }
/** * {@inheritdoc} * @return \MongoId */ protected function randomStaticValue() { $mongoId = parent::randomStaticValue(); 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(); }