StringFragmentCollection implements Countable
Table of Contents
Interfaces
- Countable
Properties
- $fragments : array<int, StringFragment>
- $length : int
- Length of all fragment strings
Methods
- __construct() : mixed
- __toString() : string
- count() : int
- diff() : self
- getFragments() : array<int, StringFragment>
- getLength() : int
- intersect() : self
- with() : self
- withOnlyType() : self
- withoutType() : self
- getFragmentIdents() : array<int, string>
Properties
$fragments
        protected
            array<int, StringFragment>
    $fragments
    
    
    
    
    
    
$length
Length of all fragment strings
        protected
            int
    $length
     = 0
    
    
    
    
    
Methods
__construct()
    public
                    __construct(StringFragment ...$fragments) : mixed
    Parameters
- $fragments : StringFragment
__toString()
    public
                    __toString() : string
    Return values
stringcount()
    public
                    count() : int
    Return values
intdiff()
    public
                    diff(self $other) : self
    Parameters
- $other : self
Return values
selfgetFragments()
    public
                    getFragments() : array<int, StringFragment>
    Return values
array<int, StringFragment>getLength()
    public
                    getLength() : int
    Return values
intintersect()
    public
                    intersect(self $other) : self
    Parameters
- $other : self
Return values
selfwith()
    public
                    with(StringFragment ...$fragments) : self
    Parameters
- $fragments : StringFragment
Return values
selfwithOnlyType()
    public
                    withOnlyType(string $type) : self
    Parameters
- $type : string
Return values
selfwithoutType()
    public
                    withoutType(string $type) : self
    Parameters
- $type : string
Return values
selfgetFragmentIdents()
    protected
                    getFragmentIdents() : array<int, string>