PHP Classes

File: src/AbstractComposerRepositoryClient.php

Recommend this page to a friend!
  Classes of Till Wehowski   Package Fetcher   src/AbstractComposerRepositoryClient.php   Download  
File: src/AbstractComposerRepositoryClient.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Package Fetcher
Fetch packages from several Composer repositories
Author: By
Last change:
Date: 3 years ago
Size: 720 bytes
 

Contents

Class file image Download
<?php
namespace frdl\PackageFetcher;

use
Packagist\Api\Client as BaseClient
use frdl\PackageFetcher\RepositoryClientInterface;
 
   
abstract class
AbstractComposerRepositoryClient extends BaseClient implements RepositoryClientInterface
{
    const
SERVICE_PACKAGE = 'package';
    const
SERVICE_ALL = 'all';
    const
SERVICE_SEARCH = 'search';
    const
SERVICE_POPULAR = 'popular';
   

    public function
getPackagistUrl() : string
   
{
        return
$this->packagistUrl;
    }
    public function
setPackagistUrl($packagistUrl) :void
   
{
       
$this->packagistUrl = $packagistUrl;
    }
    abstract public function
service(string $service) :?\callable;
    abstract public function
supports() :array;
}