public function willSeeType(string $type): self
    {
        if (empty($type)) {
            throw new \InvalidArgumentException('Expected type must be a non-empty string.');
        }

        $this->expectedType = $type;

        return $this;
    }
public function willSeeType(string $type): self
    {
        if (empty($type)) {
            throw new \InvalidArgumentException('Expected type must be a non-empty string.');
        }

        $this->expectedType = $type;

        return $this;
    }
public function willSeeType ( string $ type ) : self { if ( empty ( $ type ) ) { throw new \ InvalidArgumentException ( 'Expected type must be a non-empty string.' ) ; } $ this -> expectedType = $ type ; return $ this ; }
Set the expected resource type for the data member of the JSON document.

@param string $type
@return $this
Set the expected resource type for the data member of the JSON document .