Open Journal Systems  3.3.0
Seboettg\Collection\Test\Element Class Reference
Inheritance diagram for Seboettg\Collection\Test\Element:
Seboettg\Collection\Comparable

Public Member Functions

 __construct ($attr1, $attr2="")
 
 compareTo (Comparable $b)
 
 getAttr1 ()
 
 getAttr2 ()
 
 setAttr1 ($attr1)
 
 setAttr2 ($attr2)
 

Detailed Description

Definition at line 288 of file ArrayListTest.php.

Constructor & Destructor Documentation

◆ __construct()

Seboettg\Collection\Test\Element::__construct (   $attr1,
  $attr2 = "" 
)

Definition at line 295 of file ArrayListTest.php.

Member Function Documentation

◆ compareTo()

Seboettg\Collection\Test\Element::compareTo ( Comparable  $b)

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y.

Parameters
Comparable$b
Returns
int

Implements Seboettg\Collection\Comparable.

Definition at line 342 of file ArrayListTest.php.

◆ getAttr1()

Seboettg\Collection\Test\Element::getAttr1 ( )
Returns
mixed

Definition at line 304 of file ArrayListTest.php.

Referenced by Seboettg\Collection\Test\ArrayListTest\testFilter().

◆ getAttr2()

Seboettg\Collection\Test\Element::getAttr2 ( )
Returns
mixed

Definition at line 320 of file ArrayListTest.php.

◆ setAttr1()

Seboettg\Collection\Test\Element::setAttr1 (   $attr1)
Parameters
mixed$attr1

Definition at line 312 of file ArrayListTest.php.

◆ setAttr2()

Seboettg\Collection\Test\Element::setAttr2 (   $attr2)
Parameters
mixed$attr2

Definition at line 328 of file ArrayListTest.php.


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