vendor/bshaffer/oauth2-server-bundle/OAuth2/ServerBundle/Entity/ClientPublicKey.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

namespace OAuth2\ServerBundle\Entity;

/**
 * Client
 */
class ClientPublicKey
{
    /**
     * @var \OAuth2\ServerBundle\Entity\Client
     */
    private $client;

    /**
     * @var integer
     */
    private $client_id;

    /**
     * @var string
     */
    private $public_key;

    /**
     * Set client
     *
     * @param  \OAuth2\ServerBundle\Entity\Client $client
     * @return ClientPublicKey
     */
    public function setClient(\OAuth2\ServerBundle\Entity\Client $client = null)
    {
        $this->client = $client;

        // this is necessary as the client_id is the primary key
        $this->client_id = $client->getClientId();

        return $this;
    }

    /**
     * Get client
     *
     * @return \OAuth2\ServerBundle\Entity\Client
     */
    public function getClient()
    {
        return $this->client;
    }

    /**
     * Set public key
     *
     * @param  string  $public_key
     * @return Client
     */
    public function setPublicKey($public_key)
    {
        $this->public_key = $public_key;

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。