public function setOrigin($origin)
    {
        if ($origin !== null) {
            if (!is_string($origin)) {
                throw new InvalidArgumentException(
                    'Origin must be a string.'
                );
            }
        }

        $this->origin = $origin;

        return $this;
    }
public function setOrigin($origin)
    {
        if ($origin !== null) {
            if (!is_string($origin)) {
                throw new InvalidArgumentException(
                    'Origin must be a string.'
                );
            }
        }

        $this->origin = $origin;

        return $this;
    }
public function setOrigin ( $ origin ) { if ( $ origin !== null ) { if ( ! is_string ( $ origin ) ) { throw new InvalidArgumentException ( 'Origin must be a string.' ) ; } } $ this -> origin = $ origin ; return $ this ; }
Set the origin of the object submission.

@param  string $origin The source URL or identifier of the submission.
@throws InvalidArgumentException If the argument is not a string.
@return UserDataInterface Chainable
Set the origin of the object submission .