verify() public method

Ensure all Package's parameters are good.
public verify ( Package $package ) : boolean
$package Ptondereau\PackMe\Package
return boolean
Example #1
0
 /**
  * Return keywords list.
  *
  * @return array
  */
 public function toArray()
 {
     $this->validator->verify($this);
     $this->parseAuthor($this->author);
     $packageInfo = explode('/', $this->name);
     $this->vendor = Str::studly($packageInfo[0]);
     $this->package = Str::studly($packageInfo[1]);
     return ['name' => $this->name, 'description' => $this->description ?: '', 'vendor' => $this->vendor, 'package' => $this->package, 'authorName' => $this->authorName, 'authorEmail' => $this->email, 'config' => Str::slug($this->package)];
 }