Packagist\Api\Result\Package::getDescription PHP 메소드

getDescription() 공개 메소드

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

Usage Example

예제 #1
0
 /**
  * @param Package $package
  * @return array
  */
 public function transform(Package $package)
 {
     list($vendor, $name) = $this->splitVendorAndName($package->getName());
     $this->diskFactory->disk('local')->makeDirectory('storage/modules/' . $package->getName());
     if ($this->diskFactory->disk('local')->allDirectories('storage/modules/' . $package->getName()) === []) {
         $this->git->clone($package->getRepository(), storage_path('modules/' . $package->getName()));
     }
     return ['vendor' => $vendor, 'name' => $name, 'excerpt' => $package->getDescription(), 'description' => $this->getReadmeFileFor($package), 'favourites' => $package->getFavers(), 'total_downloads' => $package->getDownloads()->getTotal(), 'monthly_downloads' => $package->getDownloads()->getMonthly(), 'daily_downloads' => $package->getDownloads()->getDaily()];
 }
All Usage Examples Of Packagist\Api\Result\Package::getDescription