Skip to content

Commit

Permalink
Merge pull request #247 from garrettw/master
Browse files Browse the repository at this point in the history
Add property defs to Wp_Scss class and update constructor phpdocs
  • Loading branch information
shadoath authored Jan 18, 2024
2 parents 3768809 + 6eba123 commit cf9a261
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions class/class-wp-scss.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit cf9a261

Please sign in to comment.