@@ -619,190 +619,243 @@ class Sabberworm\CSS\CSSList\Document#4 (2) {
619
619
## Class diagram
620
620
621
621
``` mermaid
622
+ %% start of the generated part
622
623
classDiagram
623
624
direction LR
624
625
625
- %% Start of the part originally generated from the PHP code using tasuku43/mermaid-class-diagram
626
-
627
- class CSSElement {
628
- <<interface>>
626
+ class Anchor {
629
627
}
630
- class Renderable {
628
+ class AtRule {
631
629
<<interface>>
632
630
}
633
- class Positionable {
634
- <<interface>>
631
+ class AtRuleBlockList {
635
632
}
636
- class CSSListItem {
637
- <<interface>>
633
+ class AtRuleSet {
638
634
}
639
- class RuleContainer {
635
+ class CSSBlockList {
636
+ <<abstract>>
637
+ }
638
+ class CSSElement {
640
639
<<interface>>
641
640
}
642
- class DeclarationBlock {
641
+ class CSSFunction {
643
642
}
644
- class RuleSet {
643
+ class CSSList {
645
644
<<abstract>>
646
645
}
647
- class AtRuleSet {
646
+ class CSSListItem {
647
+ <<interface>>
648
648
}
649
- class KeyframeSelector {
649
+ class CSSNamespace {
650
650
}
651
- class AtRule {
652
- <<interface>>
651
+ class CSSString {
652
+ }
653
+ class CalcFunction {
654
+ }
655
+ class CalcRuleValueList {
653
656
}
654
657
class Charset {
655
658
}
656
- class Import {
659
+ class Color {
657
660
}
658
- class Selector {
661
+ class Comment {
659
662
}
660
- class CSSNamespace {
663
+ class Commentable {
664
+ <<interface>>
661
665
}
662
- class Settings {
666
+ class DeclarationBlock {
663
667
}
664
- class Rule {
668
+ class Document {
665
669
}
666
- class Parser {
670
+ class Import {
667
671
}
668
- class OutputFormatter {
672
+ class KeyFrame {
669
673
}
670
- class OutputFormat {
674
+ class KeyframeSelector {
675
+ }
676
+ class LineName {
671
677
}
672
678
class OutputException {
673
679
}
674
- class UnexpectedEOFException {
680
+ class OutputFormat {
675
681
}
676
- class SourceException {
682
+ class OutputFormatter {
677
683
}
678
- class UnexpectedTokenException {
684
+ class Parser {
679
685
}
680
686
class ParserState {
681
687
}
682
- class Anchor {
683
- }
684
- class CSSBlockList {
685
- <<abstract>>
686
- }
687
- class Document {
688
+ class Positionable {
689
+ <<interface>>
688
690
}
689
- class CSSList {
691
+ class PrimitiveValue {
690
692
<<abstract>>
691
693
}
692
- class KeyFrame {
693
- }
694
- class AtRuleBlockList {
695
- }
696
- class Color {
694
+ class Renderable {
695
+ <<interface>>
697
696
}
698
- class URL {
697
+ class Rule {
699
698
}
700
- class CalcRuleValueList {
699
+ class RuleContainer {
700
+ <<interface>>
701
701
}
702
- class ValueList {
702
+ class RuleSet {
703
703
<<abstract>>
704
704
}
705
- class CalcFunction {
705
+ class RuleValueList {
706
706
}
707
- class LineName {
707
+ class Selector {
708
708
}
709
- class Value {
710
- <<abstract>>
709
+ class Settings {
711
710
}
712
711
class Size {
713
712
}
714
- class CSSString {
713
+ class SourceException {
715
714
}
716
- class PrimitiveValue {
717
- <<abstract>>
715
+ class SpecificityCalculator {
718
716
}
719
- class CSSFunction {
717
+ class URL {
720
718
}
721
- class RuleValueList {
719
+ class UnexpectedEOFException {
722
720
}
723
- class Commentable {
724
- <<interface>>
721
+ class UnexpectedTokenException {
725
722
}
726
- class Comment {
723
+ class Value {
724
+ <<abstract>>
725
+ }
726
+ class ValueList {
727
+ <<abstract>>
727
728
}
728
729
729
- RuleSet <|-- DeclarationBlock: inheritance
730
+ Anchor ..> ParserState: dependency
731
+ CSSListItem <|-- AtRule: inheritance
732
+ AtRule <|.. AtRuleBlockList: realization
733
+ CSSBlockList <|-- AtRuleBlockList: inheritance
734
+ AtRuleBlockList ..> OutputFormat: dependency
735
+ AtRule <|.. AtRuleSet: realization
736
+ AtRuleSet ..> OutputFormat: dependency
737
+ RuleSet <|-- AtRuleSet: inheritance
738
+ CSSList <|-- CSSBlockList: inheritance
730
739
Renderable <|-- CSSElement: inheritance
731
- Renderable <|-- CSSListItem: inheritance
740
+ CSSFunction ..> OutputFormat: dependency
741
+ CSSFunction ..> ParserState: dependency
742
+ ValueList <|-- CSSFunction: inheritance
743
+ CSSList ..> AtRuleBlockList: dependency
744
+ CSSList ..> AtRuleSet: dependency
745
+ CSSElement <|.. CSSList: realization
746
+ CSSListItem <|.. CSSList: realization
747
+ CSSList ..> CSSNamespace: dependency
748
+ CSSList ..> Charset: dependency
749
+ CSSList ..> Import: dependency
750
+ CSSList ..> KeyFrame: dependency
751
+ CSSList ..> OutputFormat: dependency
752
+ CSSList ..> ParserState: dependency
753
+ Positionable <|.. CSSList: realization
754
+ CSSList ..> Selector: dependency
755
+ CSSList ..> SourceException: dependency
756
+ CSSList ..> UnexpectedTokenException: dependency
732
757
Commentable <|-- CSSListItem: inheritance
733
- Positionable <|.. RuleSet: realization
734
- CSSElement <|.. RuleSet: realization
735
- CSSListItem <|.. RuleSet: realization
736
- RuleContainer <|.. RuleSet: realization
737
- RuleSet <|-- AtRuleSet: inheritance
738
- AtRule <|.. AtRuleSet: realization
739
- Renderable <|.. Selector: realization
740
- Selector <|-- KeyframeSelector: inheritance
741
- CSSListItem <|-- AtRule: inheritance
742
- Positionable <|.. Charset: realization
758
+ Renderable <|-- CSSListItem: inheritance
759
+ AtRule <|.. CSSNamespace: realization
760
+ CSSNamespace ..> OutputFormat: dependency
761
+ Positionable <|.. CSSNamespace: realization
762
+ CSSString ..> OutputFormat: dependency
763
+ CSSString ..> ParserState: dependency
764
+ PrimitiveValue <|-- CSSString: inheritance
765
+ CSSString ..> SourceException: dependency
766
+ CSSFunction <|-- CalcFunction: inheritance
767
+ CalcFunction ..> CalcRuleValueList: dependency
768
+ CalcFunction ..> ParserState: dependency
769
+ CalcFunction ..> RuleValueList: dependency
770
+ CalcFunction ..> UnexpectedTokenException: dependency
771
+ CalcRuleValueList ..> OutputFormat: dependency
772
+ RuleValueList <|-- CalcRuleValueList: inheritance
743
773
AtRule <|.. Charset: realization
744
- Positionable <|.. Import: realization
774
+ Charset ..> CSSString: dependency
775
+ Charset ..> OutputFormat: dependency
776
+ Positionable <|.. Charset: realization
777
+ CSSFunction <|-- Color: inheritance
778
+ Color ..> OutputFormat: dependency
779
+ Color ..> ParserState: dependency
780
+ Color ..> Size: dependency
781
+ Color ..> UnexpectedTokenException: dependency
782
+ Comment ..> OutputFormat: dependency
783
+ Positionable <|.. Comment: realization
784
+ Renderable <|.. Comment: realization
785
+ DeclarationBlock ..> KeyframeSelector: dependency
786
+ DeclarationBlock ..> OutputException: dependency
787
+ DeclarationBlock ..> OutputFormat: dependency
788
+ DeclarationBlock ..> ParserState: dependency
789
+ RuleSet <|-- DeclarationBlock: inheritance
790
+ DeclarationBlock ..> Selector: dependency
791
+ DeclarationBlock ..> UnexpectedTokenException: dependency
792
+ CSSBlockList <|-- Document: inheritance
793
+ Document ..> OutputFormat: dependency
794
+ Document ..> ParserState: dependency
745
795
AtRule <|.. Import: realization
746
- Positionable <|.. CSSNamespace: realization
747
- AtRule <|.. CSSNamespace: realization
796
+ Import ..> OutputFormat: dependency
797
+ Positionable <|.. Import: realization
798
+ Import ..> URL: dependency
799
+ AtRule <|.. KeyFrame: realization
800
+ CSSList <|-- KeyFrame: inheritance
801
+ KeyFrame ..> OutputFormat: dependency
802
+ Selector <|-- KeyframeSelector: inheritance
803
+ LineName ..> OutputFormat: dependency
804
+ LineName ..> ParserState: dependency
805
+ ValueList <|-- LineName: inheritance
806
+ SourceException <|-- OutputException: inheritance
807
+ OutputFormat ..> OutputFormatter: dependency
808
+ OutputFormatter ..> Commentable: dependency
809
+ OutputFormatter ..> InvalidArgumentException: dependency
810
+ OutputFormatter ..> OutputFormat: dependency
811
+ Parser ..> Document: dependency
812
+ Parser ..> ParserState: dependency
813
+ ParserState ..> Anchor: dependency
814
+ ParserState ..> Comment: dependency
815
+ ParserState ..> Settings: dependency
816
+ ParserState ..> SourceException: dependency
817
+ ParserState ..> UnexpectedEOFException: dependency
818
+ ParserState ..> UnexpectedTokenException: dependency
819
+ Value <|-- PrimitiveValue: inheritance
820
+ Renderable ..> OutputFormat: dependency
748
821
CSSElement <|.. Rule: realization
749
- Positionable <|.. Rule: realization
750
822
Commentable <|.. Rule: realization
751
- SourceException <|-- OutputException: inheritance
752
- UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
823
+ Rule ..> OutputFormat: dependency
824
+ Rule ..> ParserState: dependency
825
+ Positionable <|.. Rule: realization
826
+ Rule ..> RuleValueList: dependency
827
+ RuleContainer ..> Rule: dependency
828
+ CSSElement <|.. RuleSet: realization
829
+ CSSListItem <|.. RuleSet: realization
830
+ RuleSet ..> OutputFormat: dependency
831
+ RuleSet ..> ParserState: dependency
832
+ Positionable <|.. RuleSet: realization
833
+ RuleSet ..> Rule: dependency
834
+ RuleContainer <|.. RuleSet: realization
835
+ RuleSet ..> UnexpectedValueException: dependency
836
+ ValueList <|-- RuleValueList: inheritance
837
+ Selector ..> OutputFormat: dependency
838
+ Renderable <|.. Selector: realization
839
+ Size ..> OutputFormat: dependency
840
+ Size ..> ParserState: dependency
841
+ PrimitiveValue <|-- Size: inheritance
753
842
Exception <|-- SourceException: inheritance
754
843
Positionable <|.. SourceException: realization
755
- SourceException <|-- UnexpectedTokenException: inheritance
756
- CSSList <|-- CSSBlockList: inheritance
757
- CSSBlockList <|-- Document: inheritance
758
- CSSElement <|.. CSSList: realization
759
- Positionable <|.. CSSList: realization
760
- CSSListItem <|.. CSSList: realization
761
- CSSList <|-- KeyFrame: inheritance
762
- AtRule <|.. KeyFrame: realization
763
- CSSBlockList <|-- AtRuleBlockList: inheritance
764
- AtRule <|.. AtRuleBlockList: realization
765
- CSSFunction <|-- Color: inheritance
844
+ URL ..> CSSString: dependency
845
+ URL ..> OutputFormat: dependency
846
+ URL ..> ParserState: dependency
766
847
PrimitiveValue <|-- URL: inheritance
767
- RuleValueList <|-- CalcRuleValueList: inheritance
768
- Value <|-- ValueList: inheritance
769
- CSSFunction <|-- CalcFunction: inheritance
770
- ValueList <|-- LineName: inheritance
848
+ UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
849
+ SourceException <|-- UnexpectedTokenException: inheritance
771
850
CSSElement <|.. Value: realization
851
+ Value ..> CSSFunction: dependency
852
+ Value ..> ParserState: dependency
772
853
Positionable <|.. Value: realization
773
- PrimitiveValue <|-- Size: inheritance
774
- PrimitiveValue <|-- CSSString: inheritance
775
- Value <|-- PrimitiveValue: inheritance
776
- ValueList <|-- CSSFunction: inheritance
777
- ValueList <|-- RuleValueList: inheritance
778
- Renderable <|.. Comment: realization
779
- Positionable <|.. Comment: realization
780
-
854
+ Value ..> RuleValueList: dependency
855
+ Value ..> UnexpectedTokenException: dependency
856
+ ValueList ..> OutputFormat: dependency
857
+ Value <|-- ValueList: inheritance
781
858
%% end of the generated part
782
-
783
-
784
- Anchor --> "1" ParserState: parserState
785
- CSSList --> "*" CSSList: contents
786
- CSSList --> "*" Charset: contents
787
- CSSList --> "*" Comment: comments
788
- CSSList --> "*" Import: contents
789
- CSSList --> "*" RuleSet: contents
790
- CSSNamespace --> "*" Comment: comments
791
- Charset --> "*" Comment: comments
792
- Charset --> "1" CSSString: charset
793
- DeclarationBlock --> "*" Selector: selectors
794
- Import --> "*" Comment: comments
795
- OutputFormat --> "1" OutputFormat: nextLevelFormat
796
- OutputFormat --> "1" OutputFormatter: outputFormatter
797
- OutputFormatter --> "1" OutputFormat: outputFormat
798
- Parser --> "1" ParserState: parserState
799
- ParserState --> "1" Settings: parserSettings
800
- Rule --> "*" Comment: comments
801
- Rule --> "1" RuleValueList: value
802
- RuleSet --> "*" Comment: comments
803
- RuleSet --> "*" Rule: rules
804
- URL --> "1" CSSString: url
805
- ValueList --> "*" Value: components
806
859
```
807
860
808
861
## API and deprecation policy
0 commit comments