1 | <?php |
||
17 | abstract class ManageCore implements ManageInterface |
||
18 | { |
||
19 | /** |
||
20 | * Database handler |
||
21 | * @var \PDO |
||
22 | */ |
||
23 | protected $pdo; |
||
24 | |||
25 | /** |
||
26 | * cURL options array |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $curlOptions = []; |
||
30 | |||
31 | /** |
||
32 | * robots.txt size limit in byte |
||
33 | * @var int |
||
34 | */ |
||
35 | protected $byteLimit = self::BYTE_LIMIT; |
||
36 | |||
37 | /** |
||
38 | * ManageCore constructor. |
||
39 | * |
||
40 | * @param \PDO $pdo |
||
41 | */ |
||
42 | public function __construct(\PDO $pdo) |
||
46 | |||
47 | /** |
||
48 | * Set byte limit |
||
49 | * |
||
50 | * @param int|null $bytes |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function setByteLimit($bytes = self::BYTE_LIMIT) |
||
58 | |||
59 | /** |
||
60 | * Set cURL options |
||
61 | * |
||
62 | * @param array $options |
||
63 | * @return bool |
||
64 | */ |
||
65 | public function setCurlOptions(array $options = self::CURL_OPTIONS) |
||
70 | } |
||
71 |