public function rename($to)
	{
		$dest   = $this->getParent() . '/' . $to;
		$return = $this->hasAdapterOrFail()->adapter->rename($this->getPath(), $dest);

		// Update the internal path
		if ($return)
		{
			$this->path = $dest;
		}

		return $return;
	}
public function rename($to)
	{
		$dest   = $this->getParent() . '/' . $to;
		$return = $this->hasAdapterOrFail()->adapter->rename($this->getPath(), $dest);

		// Update the internal path
		if ($return)
		{
			$this->path = $dest;
		}

		return $return;
	}
public function rename ( $ to ) { $ dest = $ this -> getParent ( ) . '/' . $ to ; $ return = $ this -> hasAdapterOrFail ( ) -> adapter -> rename ( $ this -> getPath ( ) , $ dest ) ; // Update the internal path if ( $ return ) { $ this -> path = $ dest ; } return $ return ; }
Renames the entity

@param   string  $to  What to rename the entity to
@return  bool
Renames the entity