for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DevBoardLib\GithubCore\Repo;
/**
* Class GithubRepoPermissions.
*/
class GithubRepoPermissions implements GithubRepoPermissonsInterface
{
/** @var bool */
private $admin;
private $push;
private $read;
* GithubRepoPermissions constructor.
*
* @param bool $admin
* @param bool $push
* @param bool $read
public function __construct(bool $admin, bool $push, bool $read)
$this->admin = $admin;
$this->push = $push;
$this->read = $read;
}
* @return bool
public function isAdmin() : bool
return $this->admin;
public function isPushAllowed() : bool
return $this->push;
public function isReadAllowed() : bool
return $this->read;