PhpGitHooks\Module\Git\Service\GitIgnoreExtractor::extract PHP Метод

extract() публичный Метод

public extract ( ) : GitIgnoreDataResponse
Результат PhpGitHooks\Module\Git\Contract\Response\GitIgnoreDataResponse
    public function extract()
    {
        $content = $this->reader->read();
        return new GitIgnoreDataResponse($content);
    }

Usage Example

 /**
  * @param QueryInterface $query
  *
  * @return GitIgnoreDataResponse|GitIgnoreExtractorQuery
  */
 public function handle(QueryInterface $query)
 {
     return $this->gitIgnoreExtractor->extract();
 }
GitIgnoreExtractor