Exemple #1
0
 /**
  * {@inheritdoc}
  * @return \DateTime
  */
 public function generateStatic()
 {
     $dateTime = parent::generateStatic();
     if (!$dateTime instanceof \DateTime) {
         $dateTime = new \DateTime($dateTime);
     }
     return $dateTime;
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  * @return \MongoId
  */
 public function generateStatic()
 {
     $mongoId = parent::generateStatic();
     if (!$mongoId instanceof \MongoId) {
         $mongoId = new \MongoId($mongoId);
     }
     return $mongoId;
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  * @return boolean
  */
 public function generateStatic()
 {
     return (array) parent::generateStatic();
 }
Exemple #4
0
 /**
  * {@inheritdoc}
  * @return float
  */
 public function generateStatic()
 {
     return (double) parent::generateStatic();
 }
Exemple #5
0
 /**
  * {@inheritdoc}
  * @return boolean
  */
 public function generateStatic()
 {
     return (bool) parent::generateStatic();
 }
Exemple #6
0
 /**
  * {@inheritdoc}
  * @return string
  */
 public function generateStatic()
 {
     return (string) parent::generateStatic();
 }