private function createContext() { $class = new ClassGenerator('MyType', 'MyNamespace'); $type = new Type('MyNamespace', 'MyType', ['prop1' => 'string', 'prop2' => 'int']); $property = new Property('prop1', 'string'); return new PropertyContext($class, $type, $property); }