src/Sensorario/Resources/Rule.php 1 location
|
@@ 103-112 (lines=10) @@
|
| 100 |
|
return current($this->rule); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
public function getExpectedType() |
| 104 |
|
{ |
| 105 |
|
$expectedType = $this->isObject() |
| 106 |
|
? $this->getObjectType() |
| 107 |
|
: 'undefined'; |
| 108 |
|
|
| 109 |
|
return $this->getRuleType() == 'scalar' |
| 110 |
|
? $this->getValue() |
| 111 |
|
: $expectedType; |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
public function isValueNotAnObject() |
| 115 |
|
{ |
src/Sensorario/Resources/Rulers/Rule.php 1 location
|
@@ 112-121 (lines=10) @@
|
| 109 |
|
return current($this->rule); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
public function getExpectedType() |
| 113 |
|
{ |
| 114 |
|
$expectedType = $this->isObject() |
| 115 |
|
? $this->getObjectType() |
| 116 |
|
: 'undefined'; |
| 117 |
|
|
| 118 |
|
return $this->getRuleType() == self::TYPE_SCALAR |
| 119 |
|
? $this->getValue() |
| 120 |
|
: $expectedType; |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
public function isValueNotAnObject() |
| 124 |
|
{ |