Ptondereau\PackMe\Package::getAuthor PHP 메소드

getAuthor() 공개 메소드

public getAuthor ( ) : string
리턴 string
    public function getAuthor()
    {
        return $this->author;
    }

Usage Example

예제 #1
0
 /**
  * Make a verification.
  *
  * @param Package $package
  *
  * @throws ValidatorException
  *
  * @return mixed|void
  */
 public function verify(Package $package)
 {
     if (null === $package->getAuthor() || empty($package->getAuthor())) {
         throw new ValidatorException('Author is not defined!');
     }
 }