public function supportsAttribute($attribute) { return in_array($attribute, array_keys($this->permissions)); }