OAuthClient.php 492 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Base\OAuthServerBundle\Entity;
  3. use FOS\OAuthServerBundle\Entity\Client as BaseClient;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class OAuthClient extends BaseClient
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(type="integer")
  13. * @ORM\GeneratedValue(strategy="AUTO")
  14. */
  15. protected $id;
  16. public function __construct()
  17. {
  18. parent::__construct();
  19. }
  20. public function __toString()
  21. {
  22. return strval($this->id);
  23. }
  24. }