Skip to content

Commit e77d709

Browse files
committed
[FEATURE] Add dedicated accessors for OutputFormat
1 parent 5fe6db9 commit e77d709

File tree

1 file changed

+363
-7
lines changed

1 file changed

+363
-7
lines changed

src/OutputFormat.php

Lines changed: 363 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44

55
namespace Sabberworm\CSS;
66

7-
/**
8-
* Class OutputFormat
9-
*
10-
* @method OutputFormat setSemicolonAfterLastRule(bool $bSemicolonAfterLastRule) Set whether semicolons are added after
11-
* last rule.
12-
*/
137
class OutputFormat
148
{
159
/**
@@ -167,7 +161,9 @@ class OutputFormat
167161
*/
168162
private $iIndentationLevel = 0;
169163

170-
public function __construct() {}
164+
public function __construct()
165+
{
166+
}
171167

172168
/**
173169
* @param string $sName
@@ -242,6 +238,366 @@ public function __call(string $sMethodName, array $aArguments)
242238
}
243239
}
244240

241+
public function getStringQuotingType(): string
242+
{
243+
return $this->sStringQuotingType;
244+
}
245+
246+
/**
247+
* @return $this fluent interface
248+
*/
249+
public function setStringQuotingType(string $quotingType): self
250+
{
251+
$this->sStringQuotingType = $quotingType;
252+
253+
return $this;
254+
}
255+
256+
public function getRGBHashNotation(): bool
257+
{
258+
return $this->bRGBHashNotation;
259+
}
260+
261+
/**
262+
* @return $this fluent interface
263+
*/
264+
public function setRGBHashNotation(bool $rgbHashNotation): self
265+
{
266+
$this->bRGBHashNotation = $rgbHashNotation;
267+
268+
return $this;
269+
}
270+
271+
public function getSemicolonAfterLastRule(): bool
272+
{
273+
return $this->bSemicolonAfterLastRule;
274+
}
275+
276+
/**
277+
* @return $this fluent interface
278+
*/
279+
public function setSemicolonAfterLastRule(bool $semicolonAfterLastRule): self
280+
{
281+
$this->bSemicolonAfterLastRule = $semicolonAfterLastRule;
282+
283+
return $this;
284+
}
285+
286+
public function getSpaceAfterRuleName(): string
287+
{
288+
return $this->sSpaceAfterRuleName;
289+
}
290+
291+
/**
292+
* @return $this fluent interface
293+
*/
294+
public function setSpaceAfterRuleName(string $whitespace): self
295+
{
296+
$this->sSpaceAfterRuleName = $whitespace;
297+
298+
return $this;
299+
}
300+
301+
public function getSpaceBeforeRules(): string
302+
{
303+
return $this->sSpaceBeforeRules;
304+
}
305+
306+
/**
307+
* @return $this fluent interface
308+
*/
309+
public function setSpaceBeforeRules(string $whitespace): self
310+
{
311+
$this->sSpaceBeforeRules = $whitespace;
312+
313+
return $this;
314+
}
315+
316+
public function getSpaceAfterRules(): string
317+
{
318+
return $this->sSpaceAfterRules;
319+
}
320+
321+
/**
322+
* @return $this fluent interface
323+
*/
324+
public function setSpaceAfterRules(string $whitespace): self
325+
{
326+
$this->sSpaceAfterRules = $whitespace;
327+
328+
return $this;
329+
}
330+
331+
public function getSpaceBetweenRules(): string
332+
{
333+
return $this->sSpaceBetweenRules;
334+
}
335+
336+
/**
337+
* @return $this fluent interface
338+
*/
339+
public function setSpaceBetweenRules(string $whitespace): self
340+
{
341+
$this->sSpaceBetweenRules = $whitespace;
342+
343+
return $this;
344+
}
345+
346+
public function getSpaceBeforeBlocks(): string
347+
{
348+
return $this->sSpaceBeforeBlocks;
349+
}
350+
351+
/**
352+
* @return $this fluent interface
353+
*/
354+
public function setSpaceBeforeBlocks(string $whitespace): self
355+
{
356+
$this->sSpaceBeforeBlocks = $whitespace;
357+
358+
return $this;
359+
}
360+
361+
public function getSpaceAfterBlocks(): string
362+
{
363+
return $this->sSpaceAfterBlocks;
364+
}
365+
366+
/**
367+
* @return $this fluent interface
368+
*/
369+
public function setSpaceAfterBlocks(string $whitespace): self
370+
{
371+
$this->sSpaceAfterBlocks = $whitespace;
372+
373+
return $this;
374+
}
375+
376+
public function getSpaceBetweenBlocks(): string
377+
{
378+
return $this->sSpaceBetweenBlocks;
379+
}
380+
381+
/**
382+
* @return $this fluent interface
383+
*/
384+
public function setSpaceBetweenBlocks(string $whitespace): self
385+
{
386+
$this->sSpaceBetweenBlocks = $whitespace;
387+
388+
return $this;
389+
}
390+
391+
public function getBeforeAtRuleBlock(): string
392+
{
393+
return $this->sBeforeAtRuleBlock;
394+
}
395+
396+
/**
397+
* @return $this fluent interface
398+
*/
399+
public function setBeforeAtRuleBlock(string $whitespace): self
400+
{
401+
$this->sBeforeAtRuleBlock = $whitespace;
402+
403+
return $this;
404+
}
405+
406+
public function getAfterAtRuleBlock(): string
407+
{
408+
return $this->sAfterAtRuleBlock;
409+
}
410+
411+
/**
412+
* @return $this fluent interface
413+
*/
414+
public function setAfterAtRuleBlock(string $whitespace): self
415+
{
416+
$this->sAfterAtRuleBlock = $whitespace;
417+
418+
return $this;
419+
}
420+
421+
public function getSpaceBeforeSelectorSeparator(): string
422+
{
423+
return $this->sSpaceBeforeSelectorSeparator;
424+
}
425+
426+
/**
427+
* @return $this fluent interface
428+
*/
429+
public function setSpaceBeforeSelectorSeparator(string $whitespace): self
430+
{
431+
$this->sSpaceBeforeSelectorSeparator = $whitespace;
432+
433+
return $this;
434+
}
435+
436+
public function getSpaceAfterSelectorSeparator(): string
437+
{
438+
return $this->sSpaceAfterSelectorSeparator;
439+
}
440+
441+
/**
442+
* @return $this fluent interface
443+
*/
444+
public function setSpaceAfterSelectorSeparator(string $whitespace): self
445+
{
446+
$this->sSpaceAfterSelectorSeparator = $whitespace;
447+
448+
return $this;
449+
}
450+
451+
public function getSpaceBeforeListArgumentSeparator(): string
452+
{
453+
return $this->sSpaceBeforeListArgumentSeparator;
454+
}
455+
456+
/**
457+
* @return $this fluent interface
458+
*/
459+
public function setSpaceBeforeListArgumentSeparator(string $whitespace): self
460+
{
461+
$this->sSpaceBeforeListArgumentSeparator = $whitespace;
462+
463+
return $this;
464+
}
465+
466+
public function getSpaceAfterListArgumentSeparator(): string
467+
{
468+
return $this->sSpaceAfterListArgumentSeparator;
469+
}
470+
471+
/**
472+
* @return $this fluent interface
473+
*/
474+
public function setSpaceAfterListArgumentSeparator(string $whitespace): self
475+
{
476+
$this->sSpaceAfterListArgumentSeparator = $whitespace;
477+
478+
return $this;
479+
}
480+
481+
public function getSpaceBeforeOpeningBrace(): string
482+
{
483+
return $this->sSpaceBeforeOpeningBrace;
484+
}
485+
486+
/**
487+
* @return $this fluent interface
488+
*/
489+
public function setSpaceBeforeOpeningBrace(string $whitespace): self
490+
{
491+
$this->sSpaceBeforeOpeningBrace = $whitespace;
492+
493+
return $this;
494+
}
495+
496+
public function getBeforeDeclarationBlock(): string
497+
{
498+
return $this->sBeforeDeclarationBlock;
499+
}
500+
501+
/**
502+
* @return $this fluent interface
503+
*/
504+
public function setBeforeDeclarationBlock(string $whitespace): self
505+
{
506+
$this->sBeforeDeclarationBlock = $whitespace;
507+
508+
return $this;
509+
}
510+
511+
public function getAfterDeclarationBlockSelectors(): string
512+
{
513+
return $this->sAfterDeclarationBlockSelectors;
514+
}
515+
516+
/**
517+
* @return $this fluent interface
518+
*/
519+
public function setAfterDeclarationBlockSelectors(string $whitespace): self
520+
{
521+
$this->sAfterDeclarationBlockSelectors = $whitespace;
522+
523+
return $this;
524+
}
525+
526+
public function getAfterDeclarationBlock(): string
527+
{
528+
return $this->sAfterDeclarationBlock;
529+
}
530+
531+
/**
532+
* @return $this fluent interface
533+
*/
534+
public function setAfterDeclarationBlock(string $whitespace): self
535+
{
536+
$this->sAfterDeclarationBlock = $whitespace;
537+
538+
return $this;
539+
}
540+
541+
public function getIndentation(): string
542+
{
543+
return $this->sIndentation;
544+
}
545+
546+
/**
547+
* @return $this fluent interface
548+
*/
549+
public function setIndentation(string $sIndentation): self
550+
{
551+
$this->sIndentation = $sIndentation;
552+
553+
return $this;
554+
}
555+
556+
public function getIgnoreExceptions(): bool
557+
{
558+
return $this->bIgnoreExceptions;
559+
}
560+
561+
/**
562+
* @return $this fluent interface
563+
*/
564+
public function setIgnoreExceptions(bool $bIgnoreExceptions): self
565+
{
566+
$this->bIgnoreExceptions = $bIgnoreExceptions;
567+
568+
return $this;
569+
}
570+
571+
public function getRenderComments(): bool
572+
{
573+
return $this->bRenderComments;
574+
}
575+
576+
/**
577+
* @return $this fluent interface
578+
*/
579+
public function setRenderComments(bool $bRenderComments): self
580+
{
581+
$this->bRenderComments = $bRenderComments;
582+
583+
return $this;
584+
}
585+
586+
public function getIndentationLevel(): int
587+
{
588+
return $this->iIndentationLevel;
589+
}
590+
591+
/**
592+
* @return $this fluent interface
593+
*/
594+
public function setIndentationLevel(int $iIndentationLevel): self
595+
{
596+
$this->iIndentationLevel = $iIndentationLevel;
597+
598+
return $this;
599+
}
600+
245601
/**
246602
* @param int $iNumber
247603
*

0 commit comments

Comments
 (0)