StringFragmentCollection implements Countable

Internal

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

$length

Length of all fragment strings

protected int $length = 0

Methods

__toString()

public __toString() : string
Return values
string

count()

public count() : int
Return values
int

diff()

public diff(self $other) : self
Parameters
$other : self
Return values
self

getLength()

public getLength() : int
Return values
int

intersect()

public intersect(self $other) : self
Parameters
$other : self
Return values
self

withOnlyType()

public withOnlyType(string $type) : self
Parameters
$type : string
Return values
self

withoutType()

public withoutType(string $type) : self
Parameters
$type : string
Return values
self

getFragmentIdents()

protected getFragmentIdents() : array<int, string>
Return values
array<int, string>

        
On this page

Search results