ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NodeMock Class Reference
+ Inheritance diagram for NodeMock:
+ Collaboration diagram for NodeMock:

Public Member Functions

 withScore (int $score)
 
 getScore ()
 
- Public Member Functions inherited from ILIAS\StudyProgramme\Assignment\Node
 __construct ($id)
 
 setSubnodes (array $subnodes)
 
 withContainer (Node $node)
 this is only used internally - do not use apart from constructing the tree! More...
 
 withSubnode ($node)
 
 getSubnodes ()
 
 getSubnode (string $id)
 
 getPath ()
 
 findSubnodePath (string $id, ?Node $node=null)
 
 getId ()
 

Protected Attributes

int $score
 
- Protected Attributes inherited from ILIAS\StudyProgramme\Assignment\Node
array $subnodes = []
 
Node $container = null
 
string $id
 
int $current_points = 0
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\StudyProgramme\Assignment\Node
 getContainer ()
 

Detailed Description

Definition at line 26 of file ilStudyProgrammeProgressTreeTest.php.

Member Function Documentation

◆ getScore()

NodeMock::getScore ( )

Definition at line 35 of file ilStudyProgrammeProgressTreeTest.php.

References $score.

35  : int
36  {
37  return $this->score;
38  }

◆ withScore()

NodeMock::withScore ( int  $score)

Definition at line 29 of file ilStudyProgrammeProgressTreeTest.php.

References $score.

29  : self
30  {
31  $clone = clone $this;
32  $clone->score = $score;
33  return $clone;
34  }

Field Documentation

◆ $score

int NodeMock::$score
protected

Definition at line 28 of file ilStudyProgrammeProgressTreeTest.php.

Referenced by getScore(), and withScore().


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