original_string: public function set($path)
  	{
  		if (! is_string($path)) {
  			throw new \InvalidArgumentException();
  		}
  		if ($path === '') {
  			$this->setParts([]);
  		} else {
  			$this->setParts(explode('/', $path));
  		}
  		return $this;
  	}
code: public function set($path)
  	{
  		if (! is_string($path)) {
  			throw new \InvalidArgumentException();
  		}
  		if ($path === '') {
  			$this->setParts([]);
  		} else {
  			$this->setParts(explode('/', $path));
  		}
  		return $this;
  	}
code_tokens: public function set ( $ path ) { if ( ! is_string ( $ path ) ) { throw new \ InvalidArgumentException ( ) ; } if ( $ path === '' ) { $ this -> setParts ( [ ] ) ; } else { $ this -> setParts ( explode ( '/' , $ path ) ) ; } return $ this ; }
docstring: Set the path.
  
  @param string $path
  @throws \InvalidArgumentException
  @return self
docstring_tokens: Set the path .