src/MetadataV3/edm/IsOKTraits/TMultiplicityTrait.php 1 location
|
@@ 7-13 (lines=7) @@
|
| 4 |
|
|
| 5 |
|
trait TMultiplicityModeTrait |
| 6 |
|
{ |
| 7 |
|
public function isTMultiplicityValid($string) |
| 8 |
|
{ |
| 9 |
|
if (!is_string($string)) { |
| 10 |
|
throw new \InvalidArgumentException("Input must be a string"); |
| 11 |
|
} |
| 12 |
|
return '0..1' == $string || '1' == $string || '*' == $string; |
| 13 |
|
} |
| 14 |
|
} |
| 15 |
|
|
src/MetadataV3/edm/IsOKTraits/TParameterModeTrait.php 1 location
|
@@ 7-13 (lines=7) @@
|
| 4 |
|
|
| 5 |
|
trait TParameterModeTrait |
| 6 |
|
{ |
| 7 |
|
public function isTParameterModeValid($string) |
| 8 |
|
{ |
| 9 |
|
if (!is_string($string)) { |
| 10 |
|
throw new \InvalidArgumentException("Input must be a string"); |
| 11 |
|
} |
| 12 |
|
return 'In' == $string || 'Out' == $string || 'InOut' == $string; |
| 13 |
|
} |
| 14 |
|
} |
| 15 |
|
|
src/Annotations/TGenerationPatternTrait.php 1 location
|
@@ 11-17 (lines=7) @@
|
| 8 |
|
{ |
| 9 |
|
use XSDTopLevelTrait; |
| 10 |
|
|
| 11 |
|
public function isTGenerationPatternValid($string) |
| 12 |
|
{ |
| 13 |
|
if (!is_string($string)) { |
| 14 |
|
throw new \InvalidArgumentException("Input must be a string"); |
| 15 |
|
} |
| 16 |
|
return 'None' == $string || 'Identity' == $string || 'Computed' == $string; |
| 17 |
|
} |
| 18 |
|
} |