From ebc209db4c776a1a6d39e02448a198905940a3e4 Mon Sep 17 00:00:00 2001 From: Cerys Date: Sun, 1 Dec 2024 15:09:07 +0000 Subject: [PATCH] no longer has the AS element --- .../PermissionsQuery/PermissionQueryBuilder.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/QueryBuilder/PermissionsQuery/PermissionQueryBuilder.php b/src/QueryBuilder/PermissionsQuery/PermissionQueryBuilder.php index 1fec5bd..3b45f30 100644 --- a/src/QueryBuilder/PermissionsQuery/PermissionQueryBuilder.php +++ b/src/QueryBuilder/PermissionsQuery/PermissionQueryBuilder.php @@ -14,7 +14,6 @@ final class PermissionQueryBuilder #[QueryBuilderRequiredField] protected string $On = ""; - protected string $As = ""; public function On(string $relativePath): PermissionQueryBuilder @@ -24,21 +23,11 @@ final class PermissionQueryBuilder return $this; } - - public function As(string $relativePath): PermissionQueryBuilder - { - self::ValidateDeegraphPath(target: $relativePath); - $this->As = $relativePath; - return $this; - } - public function Build(): PermissionQuery { self::ValidateValues(target: $this); - $builder = "PERMISSIONS ON ". $this->On; - - if($this->As != "") $builder .= " AS {". $this->As . "}"; + $builder = "PERMISSIONS ON ". $this->On; return new PermissionQuery(queryString: $builder); }