flags = $flags; $this->name = $name; $this->type = $type; $this->default = $default; $this->nullable = $nullable; } public function isPrivate(): bool { return $this->flags & Modifiers::PRIVATE; } public function isProtected(): bool { return $this->flags & Modifiers::PROTECTED; } public function isPublic(): bool { return !$this->isPrivate() && !$this->isProtected(); } public function isStatic(): bool { return $this->flags & Modifiers::STATIC; } }