Passed
Push — master ( 11d356...590235 )
by Scrutinizer
01:35
created

PropertiesTrait::getPrefixCache()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the keinos/mastodon-streaming-api-config package.
5
 *
6
 * - Authors, copyright, license, usage and etc.:
7
 *   - See: https://github.com/KEINOS/Mastodon_StreamingAPI_Config/
8
 */
9
10
declare(strict_types=1);
11
12
namespace KEINOS\MSTDN_TOOLS\Config;
13
14
trait PropertiesTrait
15
{
16
    /** @var string */
17
    protected $access_token;
18
    public function setAccessToken(string $access_token): void
19
    {
20
        $this->access_token = $access_token;
21
    }
22
    public function getAccessToken(): string
23
    {
24
        return $this->access_token;
25
    }
26
27
    /** @var string */
28
    protected $endpoint_api_instance;
29
    public function setEndpointApiInstance(string $path): void
30
    {
31
        $this->endpoint_api_instance = $path;
32
    }
33
    public function getEndpointApiInstance(): string
34
    {
35
        return $this->endpoint_api_instance;
36
    }
37
38
    /** @var bool */
39
    protected $flag_use_cache;
40
    public function setFlagUseCache(bool $flag): void
41
    {
42
        $this->flag_use_cache = $flag;
43
    }
44
    public function getFlagUseCache(): bool
45
    {
46
        return $this->flag_use_cache;
47
    }
48
49
    /** @var string */
50
    protected $id_hash_self;
51
    public function setIdHashSelf(string $id_hash_self): void
52
    {
53
        $this->id_hash_self = $id_hash_self;
54
    }
55
    public function getIdHashSelf(): string
56
    {
57
        return $this->id_hash_self;
58
    }
59
60
    /** @var array<mixed,mixed> */
61
    protected $info_instance;
62
    /** @param  array<mixed,mixed> $info_instance */
63
    public function setInfoInstance(array $info_instance): void
64
    {
65
        $this->info_instance = $info_instance;
66
    }
67
    /** @return array<mixed,mixed> */
68
    public function getInfoInstance(): array
69
    {
70
        return $this->info_instance;
71
    }
72
73
    /** @var string */
74
    protected $prefix_cache;
75
    public function setPrefixCache(string $prefix_cache): void
76
    {
77
        $this->prefix_cache = $prefix_cache;
78
    }
79
    public function getPrefixCache(): string
80
    {
81
        return $this->prefix_cache;
82
    }
83
84
    /** @var int */
85
    protected $ttl_cache;
86
    public function setTtlCache(int $ttl): void
87
    {
88
        $this->ttl_cache = $ttl;
89
    }
90
    public function getTtlCache(): int
91
    {
92
        return $this->ttl_cache;
93
    }
94
95
    /** @var string */
96
    protected $url_host;
97
    public function setUrlHost(string $url_host): void
98
    {
99
        $this->url_host = $url_host;
100
    }
101
    public function getUrlHost(): string
102
    {
103
        return $this->url_host;
104
    }
105
106
    /** @var string */
107
    protected $url_api_instance;
108
    public function setUrlApiInstance(string $url_api_instance): void
109
    {
110
        $this->url_api_instance = $url_api_instance;
111
    }
112
    public function getUrlApiInstance(): string
113
    {
114
        return $this->url_api_instance;
115
    }
116
}
117