ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Assetic\Util\TraversableString Class Reference

An object that can be used as either a string or array. More...

+ Inheritance diagram for Assetic\Util\TraversableString:
+ Collaboration diagram for Assetic\Util\TraversableString:

Public Member Functions

 __construct ($one, array $many)
 
 getIterator ()
 
 count ()
 
 __toString ()
 

Private Attributes

 $one
 
 $many
 

Detailed Description

An object that can be used as either a string or array.

Author
Kris Wallsmith kris..nosp@m.wall.nosp@m.smith.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 19 of file TraversableString.php.

Constructor & Destructor Documentation

◆ __construct()

Assetic\Util\TraversableString::__construct (   $one,
array  $many 
)

Member Function Documentation

◆ __toString()

Assetic\Util\TraversableString::__toString ( )

Definition at line 40 of file TraversableString.php.

References Assetic\Util\TraversableString\$one.

41  {
42  return (string) $this->one;
43  }

◆ count()

Assetic\Util\TraversableString::count ( )

Definition at line 35 of file TraversableString.php.

36  {
37  return count($this->many);
38  }

◆ getIterator()

Assetic\Util\TraversableString::getIterator ( )

Definition at line 30 of file TraversableString.php.

31  {
32  return new \ArrayIterator($this->many);
33  }

Field Documentation

◆ $many

Assetic\Util\TraversableString::$many
private

Definition at line 22 of file TraversableString.php.

Referenced by Assetic\Util\TraversableString\__construct().

◆ $one

Assetic\Util\TraversableString::$one
private

The documentation for this class was generated from the following file: