From 6eba123efd83cedb372ecd1ad47c125703b2c90a Mon Sep 17 00:00:00 2001 From: Garrett W Date: Sat, 22 Jul 2023 00:16:05 -0500 Subject: [PATCH] add property defs to Wp_Scss class and update constructor phpdocs --- class/class-wp-scss.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/class/class-wp-scss.php b/class/class-wp-scss.php index 84e1349..a2c1e4b 100644 --- a/class/class-wp-scss.php +++ b/class/class-wp-scss.php @@ -6,16 +6,32 @@ class Wp_Scss { + /** @var string - path to source directory for scss files */ + private $scss_dir; + + /** @var string - path to output directory for css files */ + private $css_dir; + + /** @var string - path to cache directory for css files */ + private $cache; + + /** @var array - catches errors from compile */ + private $compile_errors; + + /** @var object - instantiate the compiling object. */ + private $scssc; + + /** @var string - type of sourcemaps to generate */ + private $sourcemaps; + /** * Set values for Wp_Scss::properties * * @param string scss_dir - path to source directory for scss files * @param string css_dir - path to output directory for css files + * @param string cache_dir - path to cache directory for css files * @param string compile_method - type of compile (compressed or expanded) - * - * @var object scssc - instantiate the compiling object. - * - * @var array compile_errors - catches errors from compile + * @param string sourcemaps - type of sourcemaps to generate */ public function __construct ($scss_dir, $css_dir, $cache_dir, $compile_method, $sourcemaps) {