<?php
/**
 * @author      Alex Bilbie <hello@alexbilbie.com>
 * @copyright   Copyright (c) Alex Bilbie
 * @license     http://mit-license.org/
 *
 * @link        https://github.com/thephpleague/oauth2-server
 */

namespace Docuform\Api\Authentication\Entities;

use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\TokenEntityTrait;
use DI\Container;

class AccessTokenEntity implements AccessTokenEntityInterface
{
  use AccessTokenTraitDfm, TokenEntityTrait, EntityTrait;

  /** @var Container $m_container */
  private $m_container;

  /**
   * AccessTokenEntity constructor.
   *
   * @param $container
   *
   * @throws \Docuform\Api\Exception\ApiHttpException
   */
  public function __construct($container)
  {
    $this->m_container = $container;
  }


  /**
   * @return Container
   */
  public function getContainer()
  {
    return $this->m_container;
  }
}