"connect" works and stores token in config
[shpub.git] / src / shpub / Config / Endpoints.php
1 <?php
2 namespace shpub;
3
4 class Config_Endpoints
5 {
6     /**
7      * Micropub endpoint URL
8      *
9      * @var string
10      */
11     public $micropub;
12
13     /**
14      * Micropub media endpoint URL
15      *
16      * @var string
17      */
18     public $media;
19
20     /**
21      * Access token endpoint URL
22      *
23      * @var string
24      */
25     public $token;
26
27     /**
28      * Authorization endpoint URL
29      *
30      * @var string
31      */
32     public $authorization;
33
34     public function incomplete()
35     {
36         return $this->authorization === null
37             || $this->token === null
38             || $this->micropub === null;
39     }
40 }
41 ?>