add method

This commit is contained in:
fogelito
2026-01-22 17:05:19 +02:00
parent b1915fa20c
commit c5b415af59
@@ -11,18 +11,13 @@ class Projects extends Base
'search',
];
/**
* @var array<string>
*/
protected array $allowed = self::ALLOWED_ATTRIBUTES;
/**
* Expression constructor
*
*/
public function __construct()
{
parent::__construct('projects', $this->allowed);
parent::__construct('projects', $this->getAllowedAttributes());
}
public function isSelectQueryAllowed(): bool
@@ -32,6 +27,6 @@ class Projects extends Base
public function getAllowedAttributes(): array
{
return $this->allowed;
return self::ALLOWED_ATTRIBUTES;
}
}