Repository.php 545 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php

namespace App\Repository;

use GuzzleHttp\Client;

interface State
{
    const Merged = 0;
    const Opened = 1;
    const All = 2;
}

interface Proposal
{
    public function id() : int;
    public function url() : string;
    public function title() : string;
    public function author() : string;
    public function created_at() : int;
}

interface Repository
{
    public function __construct(Client $client, string $repository_url);
    public function mergeRequests($state);
    public function getNewFiles(Proposal $proposal);
}