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