inital commit
[pharext/pharext.org] / app / Github / Exception / StateExpired.php
1 <?php
2
3 namespace app\Github\Exception;
4
5 use app\Github\Exception\StateException;
6
7 class StateExpired extends \Exception implements StateException
8 {
9 private $seconds;
10
11 function __construct($seconds, $previous = null) {
12 $this->seconds = abs($seconds);
13 parent::__construct("State expired $this->seconds seconds ago", 0, $previous);
14 }
15
16 function getSeconds() {
17 return $this->seconds;
18 }
19 }