Ptondereau\PackMe\Package::getDestination PHP Method

getDestination() public method

public getDestination ( ) : string
return string
    public function getDestination()
    {
        return getcwd() . '/' . $this->destination;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Make a verification.
  *
  * @param Package $package
  *
  * @throws ValidatorException
  *
  * @return void
  */
 public function verify(Package $package)
 {
     $path = $package->getDestination();
     if (is_dir($path) || is_file($path) || $path == getcwd()) {
         throw new ValidatorException('Package already exists!');
     }
 }
All Usage Examples Of Ptondereau\PackMe\Package::getDestination