open-orchestra/open-orchestra-base-api-bundle

View on GitHub
BaseApi/Model/ApiClientInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\BaseApi\Model;

/**
 * Interface ApiClientInterface
 */
interface ApiClientInterface extends BlockableInterface
{
    const ENTITY_TYPE = 'ApiClient';

    /**
     * @return int
     */
    public function getId();

    /**
     * @param string $key
     */
    public function setKey($key);

    /**
     * @return string
     */
    public function getKey();

    /**
     * @param string $name
     */
    public function setName($name);

    /**
     * @return string
     */
    public function getName();

    /**
     * @param string $secret
     */
    public function setSecret($secret);

    /**
     * @return string
     */
    public function getSecret();

    /**
     * @param bool $trusted
     */
    public function setTrusted($trusted);

    /**
     * @return bool
     */
    public function isTrusted();

    /**
     * @param string $role
     */
    public function addRole($role);

    /**
     * @return array The roles
     */
    public function getRoles();

    /**
     * @param array $roles
     */
    public function setRoles(array $roles);

    /**
     * @param $role
     */
    public function removeRole($role);
}