class = $class; $this->path = $path; $propertyName = ''; if (null !== $class) { $propertyName = $class.'::'; } $propertyName .= $path; parent::__construct(sprintf('Property "%s" is an array, but its items type isn\'t specified. You can specify that by using the type `string[]` for instance or `@SWG\Property(type="array", @SWG\Items(type="string"))`.', $propertyName)); } public function getClass() { return $this->class; } public function getPath() { return $this->path; } }