Пример #1
0
 /**
  * {@inheritdoc}
  * @return \DateTime
  */
 protected function randomStaticValue()
 {
     $dateTime = parent::randomStaticValue();
     if (!$dateTime instanceof \DateTime) {
         $dateTime = new DateTime($dateTime);
     }
     return $dateTime;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  * @return \MongoId
  */
 protected function randomStaticValue()
 {
     $mongoId = parent::randomStaticValue();
     if (!$mongoId instanceof \MongoId) {
         $mongoId = new \MongoId($mongoId);
     }
     return $mongoId;
 }