mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
update: method doc.
This commit is contained in:
parent
5ba363b787
commit
a3db080fcf
1 changed files with 10 additions and 1 deletions
|
|
@ -26,14 +26,23 @@ abstract class Filter
|
|||
*/
|
||||
abstract public function parse(array $content, string $model): array;
|
||||
|
||||
/**
|
||||
* Get the current route context.
|
||||
*
|
||||
* @return null|Route
|
||||
*/
|
||||
public function getRoute(): ?Route
|
||||
{
|
||||
return $this->route;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the database for the current project.
|
||||
*
|
||||
* @return null|Database
|
||||
*/
|
||||
public function getDbForProject(): ?Database
|
||||
{
|
||||
|
||||
return $this->dbForProject;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue