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

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

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

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

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

@param   string  $to  Where to move the entity
@return  bool
Moves the entity