ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
enshrined\svgSanitize\ElementReference\Usage Class Reference
+ Collaboration diagram for enshrined\svgSanitize\ElementReference\Usage:

Public Member Functions

 __construct (Subject $subject, $count=1)
 
 increment ($by=1)
 
 getSubject ()
 
 getCount ()
 

Protected Attributes

 $subject
 
 $count
 

Detailed Description

Definition at line 4 of file Usage.php.

Constructor & Destructor Documentation

◆ __construct()

enshrined\svgSanitize\ElementReference\Usage::__construct ( Subject  $subject,
  $count = 1 
)
Parameters
Subject$subject
int$count

Definition at line 20 of file Usage.php.

References enshrined\svgSanitize\ElementReference\Usage\$count, and enshrined\svgSanitize\ElementReference\Usage\$subject.

21  {
22  $this->subject = $subject;
23  $this->count = (int)$count;
24  }

Member Function Documentation

◆ getCount()

enshrined\svgSanitize\ElementReference\Usage::getCount ( )
Returns
int

Definition at line 45 of file Usage.php.

References enshrined\svgSanitize\ElementReference\Usage\$count.

◆ getSubject()

enshrined\svgSanitize\ElementReference\Usage::getSubject ( )
Returns
Subject

Definition at line 37 of file Usage.php.

References enshrined\svgSanitize\ElementReference\Usage\$subject.

Referenced by enshrined\svgSanitize\ElementReference\Subject\clearInternalAndGetAffectedElements().

+ Here is the caller graph for this function:

◆ increment()

enshrined\svgSanitize\ElementReference\Usage::increment (   $by = 1)
Parameters
int$by

Definition at line 29 of file Usage.php.

30  {
31  $this->count += (int)$by;
32  }

Field Documentation

◆ $count

enshrined\svgSanitize\ElementReference\Usage::$count
protected

◆ $subject

enshrined\svgSanitize\ElementReference\Usage::$subject
protected

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