mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-23 14:15:13 +00:00
33 lines
503 B
PHP
33 lines
503 B
PHP
|
<?php
|
||
|
|
||
|
namespace OAuth2\Storage;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
class NullStorage extends Memory
|
||
|
{
|
||
|
private $name;
|
||
|
private $description;
|
||
|
|
||
|
public function __construct($name, $description = null)
|
||
|
{
|
||
|
$this->name = $name;
|
||
|
$this->description = $description;
|
||
|
}
|
||
|
|
||
|
public function __toString()
|
||
|
{
|
||
|
return $this->name;
|
||
|
}
|
||
|
|
||
|
public function getMessage()
|
||
|
{
|
||
|
if ($this->description) {
|
||
|
return $this->description;
|
||
|
}
|
||
|
|
||
|
return $this->name;
|
||
|
}
|
||
|
}
|