| Total Complexity | 1 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Settings extends Model |
||
| 19 | { |
||
| 20 | // Properties |
||
| 21 | // ========================================================================= |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string The amount of time cache should last |
||
| 25 | * |
||
| 26 | * @see http://www.php.net/manual/en/dateinterval.construct.php |
||
| 27 | */ |
||
| 28 | public $cacheDuration = 'PT10M'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var bool Whether request to APIs should be cached or not |
||
| 32 | */ |
||
| 33 | public $enableCache = true; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string|null The OAuth token. |
||
| 37 | * @deprecated in 2.1.5 |
||
| 38 | */ |
||
| 39 | public $token; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var string|null The OAuth token secret. |
||
| 43 | * @deprecated in 2.1.5 |
||
| 44 | */ |
||
| 45 | public $tokenSecret; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var string|null The OAuth consumer key. |
||
| 49 | */ |
||
| 50 | public $oauthConsumerKey; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @var string|null The OAuth consumer secret. |
||
| 54 | */ |
||
| 55 | public $oauthConsumerSecret; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @var string|null The search widget’s extra query. |
||
| 59 | */ |
||
| 60 | public $searchWidgetExtraQuery = '-filter:retweets'; |
||
| 61 | |||
| 62 | // Public Methods |
||
| 63 | // ========================================================================= |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | public function rules() |
||
| 75 |