1 | <?php |
||
15 | class Kirki_CSS_To_File { |
||
16 | |||
17 | /** |
||
18 | * Fallback to inline CSS? |
||
19 | * |
||
20 | * @access protected |
||
21 | * @since 3.0.0 |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $fallback = false; |
||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @access public |
||
30 | * @since 3.0.0 |
||
31 | */ |
||
32 | public function __construct() { |
||
42 | |||
43 | /** |
||
44 | * Gets the path of the CSS file and folder in the filesystem. |
||
45 | * |
||
46 | * @access protected |
||
47 | * @since 3.0.0 |
||
48 | * @param string $context Can be "file" or "folder". If empty, returns both as array. |
||
49 | * @return string|array |
||
50 | */ |
||
51 | protected function get_path( $context = '' ) { |
||
69 | |||
70 | /** |
||
71 | * Gets the URL of the CSS file in the filesystem. |
||
72 | * |
||
73 | * @access public |
||
74 | * @since 3.0.0 |
||
75 | * @return string |
||
76 | */ |
||
77 | public function get_url() { |
||
83 | |||
84 | /** |
||
85 | * Gets the timestamp of the file. |
||
86 | * This will be used as "version" for cache-busting purposes. |
||
87 | * |
||
88 | * @access public |
||
89 | * @since 3.0.0 |
||
90 | * @return string|bool |
||
|
|||
91 | */ |
||
92 | public function get_timestamp() { |
||
99 | |||
100 | /** |
||
101 | * Writes the file to disk. |
||
102 | * |
||
103 | * @access public |
||
104 | * @since 3.0.0 |
||
105 | * @return bool |
||
106 | */ |
||
107 | public function write_file() { |
||
140 | |||
141 | /** |
||
142 | * Gets the WP_Filesystem object. |
||
143 | * |
||
144 | * @access protected |
||
145 | * @since 3.0.0 |
||
146 | * @return object |
||
147 | */ |
||
148 | protected function get_filesystem() { |
||
160 | } |
||
161 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.