GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Model::toArray()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 1
1
<?php
2
3
namespace LPTracker\models;
4
5
use LPTracker\exceptions\LPTrackerSDKException;
6
7
abstract class Model
8
{
9
    /**
10
     * @return string
11
     */
12
    public function __toString()
13
    {
14
        return json_encode($this->toArray());
15
    }
16
17
    /**
18
     * @return array
19
     */
20
    abstract public function toArray();
21
22
    /**
23
     * @return bool
24
     * @throws LPTrackerSDKException
25
     */
26
    abstract public function validate();
27
}
28