Exemple #1
0
 /**
  * @inheritdoc
  * @return self
  */
 public function flatten()
 {
     return __CONTRACT__::contentIsA(static::rootType(), $this->value);
 }
Exemple #2
0
 /**
  * @inheritdoc
  * @return Exclusive
  */
 public function flatten()
 {
     return __CONTRACT__::contentIsA(Exclusive::class, $this->value);
 }
Exemple #3
0
 /**
  * @return self
  * @throws \UnexpectedValueException if the data-set could not be flattened
  */
 public function flatten()
 {
     return __CONTRACT__::contentIsA(self::class, $this->contents);
 }