ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CountableStub Class Reference

This class is used in tests for the length filter and empty test to show that when is implemented, it is preferred over the __toString() method. More...

+ Inheritance diagram for CountableStub:
+ Collaboration diagram for CountableStub:

Public Member Functions

 __construct ($count)
 
 count ()
 
 __toString ()
 

Private Attributes

 $count
 

Detailed Description

This class is used in tests for the length filter and empty test to show that when is implemented, it is preferred over the __toString() method.

Definition at line 291 of file IntegrationTest.php.

Constructor & Destructor Documentation

◆ __construct()

CountableStub::__construct (   $count)

Definition at line 295 of file IntegrationTest.php.

296  {
297  $this->count = $count;
298  }

Member Function Documentation

◆ __toString()

CountableStub::__toString ( )

Definition at line 305 of file IntegrationTest.php.

306  {
307  throw new Exception('__toString shall not be called on \Countables');
308  }

◆ count()

CountableStub::count ( )

Definition at line 300 of file IntegrationTest.php.

301  {
302  return $this->count;
303  }

Field Documentation

◆ $count

CountableStub::$count
private

Definition at line 293 of file IntegrationTest.php.


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