parentName = $parentName; } /** * @param ReflectionProperty $reflectionObject * @return static */ public function readObjectFromReflection($reflectionObject) { $this->name = $reflectionObject->getName(); if ($reflectionObject->isProtected()) { $access = 'protected'; } elseif ($reflectionObject->isPrivate()) { $access = 'private'; } else { $access = 'public'; } $this->access = $access; $this->is_static = $reflectionObject->isStatic(); if (method_exists($reflectionObject, 'getType')) { $this->typesFromSignature = self::getReflectionTypeAsArray($reflectionObject->getType()); } if (method_exists($reflectionObject, 'isReadonly')) { $this->isReadonly = $reflectionObject->isReadOnly(); } return $this; } /** * @param Property $node * @return static */ public function readObjectFromStubNode($node) { $this->name = $node->props[0]->name->name; $this->collectTags($node); $this->is_static = $node->isStatic(); if ($node->isProtected()) { $access = 'protected'; } elseif ($node->isPrivate()) { $access = 'private'; } else { $access = 'public'; } $this->access = $access; $this->isReadonly = $node->isReadonly(); $this->typesFromSignature = self::convertParsedTypeToArray($node->type); $this->typesFromAttribute = self::findTypesFromAttribute($node->attrGroups); foreach ($this->varTags as $varTag) { $this->typesFromPhpDoc = explode('|', (string)$varTag->getType()); } $parentNode = $node->getAttribute('parent'); if ($parentNode !== null) { $this->parentName = self::getFQN($parentNode); } return $this; } /** * @param stdClass|array $jsonData * @throws Exception */ public function readMutedProblems($jsonData) { foreach ($jsonData as $property) { if ($property->name === $this->name && !empty($property->problems)) { foreach ($property->problems as $problem) { switch ($problem->description) { case 'missing property': $this->mutedProblems[StubProblemType::STUB_IS_MISSED] = $problem->versions; break; case 'wrong readonly': $this->mutedProblems[StubProblemType::WRONG_READONLY] = $problem->versions; break; default: throw new Exception("Unexpected value $problem->description"); } } } } } } __halt_compiler();----SIGNATURE:----DsxN5UfpFiH8yqZJxYCJh1iyE3enE0VJoi3JbSgSsCELVsW6aJ7tvhKi//lMMN34gmUEMEUUfBsAQSiw5JNHoW6jghioDoYGd56PZiEw/1pjkuhSqdwxGAgXnMR7+33WLbPM4r1mYQ1oW+jlD6TLklzDAA/XK6K1avUxfUmRrGCEkDOZyloc6i6eRtIn6bQNVZ9zTE4QlDgXvRI5QJvuGh+x7Wy2L5z/xdVUCWJhM+XBcG1y79Sp/zUbcAPRg7i9HJypMyGI3POY98SXBKFviQa/2qeoEUJOHDCds51ol7Fvibo0zH2AkTaaqdgBJMow7zxfAafu0T+IGeMiNIBFJA0a4sLZ67D7Vk66rVCRJXm94ZeofcT+riyO1uIldaFHLuz814Huhg2kJ2VjWQHuu8pZ8PXJ//t4Y1R0NF3ACLdWq8mbyKqraIaQ8IXuDegQG6i5w1ih4lNZjDK8p4O+HozcWlNp02Bwmss7EkY1Yai1EBsU6OCX7vBkesOOsoX4YBeyJqxAh2qzdB2+mW70wEiyqpyJusBeBuTH6MbllGdk58jnCNsziKDPgkhcP7iCTYii1DbYT8W6kHV6wdlNy+ejn6PopfCzvI+q3XD7KpDwDhKB3eZ/pRThClGY4qA7YumdqD4ozg6uzsQaIcNjtaW4dEKnXsT2R5OzDq5VEQs=----ATTACHMENT:----NTA5ODM5NzE2OTYxMjc3NCAyMTg4MTY4Njc2MTU2MDMzIDcyNTAzMDkyODk1MTc3MTU=