<?php

namespace Api;

/**
 * ProjectPermission API controller
 *
 * @package  api
 * @author   Frederic Guillot
 */
class ProjectPermission extends Base
{
    public function getMembers($project_id)
    {
        return $this->projectPermission->getMembers($project_id);
    }

    public function revokeUser($project_id, $user_id)
    {
        return $this->projectPermission->revokeMember($project_id, $user_id);
    }

    public function allowUser($project_id, $user_id)
    {
        return $this->projectPermission->addMember($project_id, $user_id);
    }
}
