/** * Constructor * * @param ILess_Node_Ruleset $root The root node * @param array $contentsMap Array of file contents map * @param array $options Array of options * @param ILess_SourceMap_Base64VLQ $encoder The encoder */ public function __construct(ILess_Node_Ruleset $root, array $contentsMap, $options = array(), ILess_SourceMap_Base64VLQ $encoder = null) { $this->root = $root; $this->contentsMap = $contentsMap; $this->encoder = $encoder ? $encoder : new ILess_SourceMap_Base64VLQ(); parent::__construct($options); }
/** * Constructor * * @param array $cliArguments Array of CLI arguments ($argv array) * @param string $currentDir Current directory */ public function __construct(array $cliArguments, $currentDir = null) { $this->scriptName = basename(array_shift($cliArguments)); $this->cliArguments = $this->parseArguments($cliArguments); $this->currentDir = $currentDir ? $currentDir : getcwd(); parent::__construct($this->convertOptions($this->cliArguments['options'])); }
/** * Constructor * * @param array $importPaths Array of import paths to search */ public function __construct(PDO $dbh, $options = array()) { $this->dbh = $dbh; parent::__construct($options); }
/** * Constructor * * @param array $importDirs Array of import paths to search * @param array $options Array of options */ public function __construct($importDirs = array(), $options = array()) { $this->importDirs = (array) $importDirs; parent::__construct($options); }