‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Utility\String\StringFragmentCollection Class Reference
Inheritance diagram for TYPO3\CMS\Core\Utility\String\StringFragmentCollection:

Public Member Functions

 __construct (StringFragment ... $fragments)
 
 __toString ()
 
 count ()
 
 with (StringFragment ... $fragments)
 
 withOnlyType (string $type)
 
 withoutType (string $type)
 
list< StringFragmentgetFragments ()
 
 getLength ()
 
 diff (self $other)
 
 intersect (self $other)
 

Protected Member Functions

list< string > getFragmentIdents ()
 

Protected Attributes

array $fragments
 
int $length = 0
 

Detailed Description

Definition at line 23 of file StringFragmentCollection.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::__construct ( StringFragment ...  $fragments)

Member Function Documentation

◆ __toString()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::__toString ( )

Definition at line 42 of file StringFragmentCollection.php.

◆ count()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::count ( )

Definition at line 47 of file StringFragmentCollection.php.

◆ diff()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::diff ( self  $other)

Definition at line 93 of file StringFragmentCollection.php.

◆ getFragmentIdents()

list<string> TYPO3\CMS\Core\Utility\String\StringFragmentCollection::getFragmentIdents ( )
protected
Returns
‪list<string>

Definition at line 116 of file StringFragmentCollection.php.

◆ getFragments()

list<StringFragment> TYPO3\CMS\Core\Utility\String\StringFragmentCollection::getFragments ( )
Returns
‪list<StringFragment>

Definition at line 83 of file StringFragmentCollection.php.

References TYPO3\CMS\Core\Utility\String\StringFragmentCollection\$fragments.

◆ getLength()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::getLength ( )

◆ intersect()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::intersect ( self  $other)

Definition at line 103 of file StringFragmentCollection.php.

◆ with()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::with ( StringFragment ...  $fragments)

◆ withOnlyType()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::withOnlyType ( string  $type)

◆ withoutType()

TYPO3\CMS\Core\Utility\String\StringFragmentCollection::withoutType ( string  $type)

Member Data Documentation

◆ $fragments

◆ $length

int TYPO3\CMS\Core\Utility\String\StringFragmentCollection::$length = 0
protected

Length of all fragment strings

Definition at line 33 of file StringFragmentCollection.php.

Referenced by TYPO3\CMS\Core\Utility\String\StringFragmentCollection\getLength().