src/UK/DynamicProperties/ExplicitGetter.php 1 location
|
@@ 81-93 (lines=13) @@
|
78 |
|
* @param string $getterName Returns the name of the associated get method, if method returns TRUE. |
79 |
|
* @return boolean |
80 |
|
*/ |
81 |
|
public function hasReadableProperty( string $name, &$getterName ) : bool |
82 |
|
{ |
83 |
|
|
84 |
|
if ( \in_array( $name, $this->ignoreGetProperties ) ) |
85 |
|
{ |
86 |
|
return false; |
87 |
|
} |
88 |
|
|
89 |
|
$getterName = 'get' . \ucfirst( $name ); |
90 |
|
|
91 |
|
return \method_exists( $this, $getterName ); |
92 |
|
|
93 |
|
} |
94 |
|
|
95 |
|
// </editor-fold> |
96 |
|
|
src/UK/DynamicProperties/ExplicitGetterSetter.php 1 location
|
@@ 91-103 (lines=13) @@
|
88 |
|
* @param string $setterName Returns the name of the associated set method, if method returns TRUE. |
89 |
|
* @return boolean |
90 |
|
*/ |
91 |
|
public function hasWritableProperty( string $name, &$setterName ) : bool |
92 |
|
{ |
93 |
|
|
94 |
|
if ( \in_array( $name, $this->ignoreSetProperties ) ) |
95 |
|
{ |
96 |
|
return false; |
97 |
|
} |
98 |
|
|
99 |
|
$setterName = 'set' . \ucfirst( $name ); |
100 |
|
|
101 |
|
return \method_exists( $this, $setterName ); |
102 |
|
|
103 |
|
} |
104 |
|
|
105 |
|
// </editor-fold> |
106 |
|
|