ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
TraversableString.php
Go to the documentation of this file.
1
<?
php
2
3
/*
4
* This file is part of the Assetic package, an OpenSky project.
5
*
6
* (c) 2010-2014 OpenSky Project Inc
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Assetic\Util
;
13
19
class
TraversableString
implements
\IteratorAggregate, \Countable
20
{
21
private
$one
;
22
private
$many
;
23
24
public
function
__construct
(
$one
,
array
$many
)
25
{
26
$this->one =
$one
;
27
$this->many =
$many
;
28
}
29
30
public
function
getIterator
()
31
{
32
return
new \ArrayIterator($this->many);
33
}
34
35
public
function
count
()
36
{
37
return
count
($this->many);
38
}
39
40
public
function
__toString
()
41
{
42
return
(
string
)
$this->one
;
43
}
44
}
Assetic\Util\TraversableString\__toString
__toString()
Definition:
TraversableString.php:40
Assetic\Util\TraversableString\__construct
__construct($one, array $many)
Definition:
TraversableString.php:24
Assetic\Util\TraversableString\$many
$many
Definition:
TraversableString.php:22
Assetic\Util\TraversableString
An object that can be used as either a string or array.
Definition:
TraversableString.php:19
Assetic\Util\TraversableString\$one
$one
Definition:
TraversableString.php:21
Assetic\Util\TraversableString\count
count()
Definition:
TraversableString.php:35
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
Assetic\Util\TraversableString\getIterator
getIterator()
Definition:
TraversableString.php:30
Assetic\Util
Definition:
CssUtils.php:12
php
libs
composer
vendor
kriswallsmith
assetic
src
Assetic
Util
TraversableString.php
Generated on Fri Jan 24 2025 19:00:49 for ILIAS by
1.8.13 (using
Doxyfile
)