- //Default bin
- private $bin;
-
- //Default compress type
- private $compress;
-
- //Twig template filename
- private $fileName;
-
- //Twig template line
- private $line;
-
- //Configure the object
- //XXX: compress can be minify or pretty
- public function __construct($fileName, $line, $bin = 'cpack', $compress = 'minify') {
- //Set fileName
- $this->fileName = $fileName;
-
- //Set line
- $this->line = $line;
-
- //Set bin
- $this->bin = $bin;
-
- //Set compress
- $this->compress = $compress;
-
+ /**
+ * Setup cpack filter
+ *
+ * @xxx compress can be minify or pretty
+ */
+ public function __construct(protected Source $fileName, protected int $line, protected string $bin = 'cpack', protected string $compress = 'minify') {