Hoa central
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
Hoa\Praspel\Model\Is Class Reference
Inheritance diagram for Hoa\Praspel\Model\Is:

Public Member Functions

 is ($property)
 
 setProperty ($property)
 
 addProperty ($property)
 
 removeProperty ($property)
 
 getProperty ()
 
 getPropertyName ()
 
- Public Member Functions inherited from Hoa\Praspel\Model\Clause
 __construct (Clause $parent)
 
 getParent ()
 
 getRoot ()
 
 getName ()
 
 getId ()
 
 accept (Visitor\Visit $visitor, &$handle=null, $eldnah=null)
 
- Public Member Functions inherited from Hoa\Visitor\Element
 accept (Visit $visitor, &$handle=null, $eldnah=null)
 

Static Public Member Functions

static getPropertyValue ($property)
 

Public Attributes

const NAME = 'is'
 
const PURE = 1
 

Protected Attributes

 $_property = 0
 
- Protected Attributes inherited from Hoa\Praspel\Model\Clause
 $_parent = null
 

Additional Inherited Members

- Protected Member Functions inherited from Hoa\Praspel\Model\Clause
 setParent (Clause $parent)
 
 _getId ()
 

Detailed Description

Class .

Represent the clause.

Definition at line 47 of file Is.php.

Member Function Documentation

Hoa\Praspel\Model\Is::addProperty (   $property)

Add a property.

Parameters
int$propertyProperty.
Returns
int

Definition at line 103 of file Is.php.

104  {
105  $old = $this->_property;
106  $this->_property |= $property;
107 
108  return $old;
109  }
Hoa\Praspel\Model\Is::getProperty ( )

Get the property value.

Returns
int

Definition at line 130 of file Is.php.

131  {
132  return $this->_property;
133  }
Hoa\Praspel\Model\Is::getPropertyName ( )

Get property name.

Returns
string

Definition at line 140 of file Is.php.

141  {
142  $out = [];
143 
144  if (true === $this->is(static::PURE)) {
145  $out[] = 'pure';
146  }
147 
148  return implode(', ', $out);
149  }
is($property)
Definition: Is.php:78

Here is the call graph for this function:

static Hoa\Praspel\Model\Is::getPropertyValue (   $property)
static

Get property value from a string.

Parameters
string$propertyProperty name.
Returns
int

Definition at line 157 of file Is.php.

158  {
159  switch ($property) {
160  case 'pure':
161  return static::PURE;
162  }
163 
164  return 0;
165  }
Hoa\Praspel\Model\Is::is (   $property)

Check if a property is declared.

Parameters
int$propertyProperty.
Returns
bool

Definition at line 78 of file Is.php.

79  {
80  return $property === ($this->_property & $property);
81  }

Here is the caller graph for this function:

Hoa\Praspel\Model\Is::removeProperty (   $property)

Remove a property.

Parameters
int$propertyProperty.
Returns
int

Definition at line 117 of file Is.php.

118  {
119  $old = $this->_property;
120  $this->_property ^= $property;
121 
122  return $old;
123  }
Hoa\Praspel\Model\Is::setProperty (   $property)

Set the property value.

Parameters
int$propertyProperty.
Returns
int

Definition at line 89 of file Is.php.

90  {
91  $old = $this->_property;
92  $this->_property = $property;
93 
94  return $old;
95  }

Member Data Documentation

Hoa\Praspel\Model\Is::$_property = 0
protected

Definition at line 68 of file Is.php.

const Hoa\Praspel\Model\Is::NAME = 'is'

Name.

string

Definition at line 54 of file Is.php.

const Hoa\Praspel\Model\Is::PURE = 1

Property: pure.

int

Definition at line 61 of file Is.php.


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