| @@ 45-60 (lines=16) @@ | ||
| 42 | * |
|
| 43 | * @return bool |
|
| 44 | */ |
|
| 45 | public function isValidProperty(ReflectionProperty $property): bool |
|
| 46 | { |
|
| 47 | if (!$property->isPublic()) { |
|
| 48 | debug(ObjectFacade::DEBUG_LABEL)->output('[Error] Property %s is not public', $property->getName()); |
|
| 49 | ||
| 50 | return false; |
|
| 51 | } |
|
| 52 | ||
| 53 | if ($property->isStatic()) { |
|
| 54 | debug(ObjectFacade::DEBUG_LABEL)->output('[Error] Property %s is static', $property->getName()); |
|
| 55 | ||
| 56 | return false; |
|
| 57 | } |
|
| 58 | ||
| 59 | return true; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @param ReflectionMethod $method |
|
| @@ 67-82 (lines=16) @@ | ||
| 64 | * |
|
| 65 | * @return bool |
|
| 66 | */ |
|
| 67 | public function isValidMethod(ReflectionMethod $method): bool |
|
| 68 | { |
|
| 69 | if (!$method->isPublic()) { |
|
| 70 | debug(ObjectFacade::DEBUG_LABEL)->output('[Error] Method %s is not public', $method->getName()); |
|
| 71 | ||
| 72 | return false; |
|
| 73 | } |
|
| 74 | ||
| 75 | if ($method->isStatic()) { |
|
| 76 | debug(ObjectFacade::DEBUG_LABEL)->output('[Error] Method %s is static', $method->getName()); |
|
| 77 | ||
| 78 | return false; |
|
| 79 | } |
|
| 80 | ||
| 81 | return true; |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @param ReflectionMethod $method |
|