Completed
Push — master ( aea3df...abf6c4 )
by Brian
01:17
created

Core::stability_check()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Darkgoldblade01\Wordpress\Api;
4
5
use Darkgoldblade01\Wordpress\WordpressApi;
6
7
class Core extends WordpressApi {
8
9
    protected $base_uri = 'https://api.wordpress.org/core/';
10
11
    /**
12
     * PHP Serialized
13
     *
14
     * Returns the PHP Serialized version of the current Wordpress Core.
15
     *
16
     * @return mixed
17
     * @throws \GuzzleHttp\Exception\GuzzleException
18
     */
19
    public function php() {
20
        return $this->get('version-check/1.6', false);
21
    }
22
23
    /**
24
     * JSON
25
     *
26
     * Returns the JSON for the current Wordpress Core.
27
     *
28
     * @return mixed
29
     * @throws \GuzzleHttp\Exception\GuzzleException
30
     */
31
    public function json() {
32
        return $this->get('version-check/1.7');
33
    }
34
35
    /**
36
     * JSON
37
     *
38
     * Returns the JSON for the current Wordpress Core.
39
     *
40
     * @return mixed
41
     * @throws \GuzzleHttp\Exception\GuzzleException
42
     */
43
    public function stability_check() {
44
        return $this->get('stable-check/1.0');
45
    }
46
}