Skip to content

Commit 25c5606

Browse files
committed
[FEATURE] Add dedicated accessors for OutputFormat
1 parent 1fad44a commit 25c5606

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
* @return string|int|bool|null
@@ -240,6 +236,366 @@ public function __call(string $sMethodName, array $aArguments)
240236
}
241237
}
242238

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

0 commit comments

Comments
 (0)