blob: 6caa620688a07da8fb41a92bf59f61cebc7d8ac5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?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;
}
}
|