Skip to content

Commit

Permalink
Refining property types instead of generic Table
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-ArchiPro committed Apr 22, 2023
1 parent 042f42a commit 54e5876
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 7 additions & 4 deletions src/Adapter/DbAcl.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
use Cake\Controller\Component;
use Cake\Core\App;
use Cake\ORM\TableRegistry;
use Cake\ORM\Table;
use Acl\Model\Table\PermissionsTable;
use Acl\Model\Table\ArosTable;
use Acl\Model\Table\AcosTable;


/**
* DbAcl implements an ACL control system in the database. ARO's and ACO's are
Expand All @@ -41,9 +44,9 @@
*/
class DbAcl implements AclInterface
{
private Table $Permission;
private Table $Aro;
private Table $Aco;
private PermissionsTable $Permission;
private ArosTable $Aro;
private AcosTable $Aco;

/**
* Constructor
Expand Down
6 changes: 4 additions & 2 deletions src/Model/Table/PermissionsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
use Cake\Core\Exception\Exception;
use Cake\ORM\Table;
use Cake\Utility\Hash;
use Acl\Model\Table\ArosTable;
use Acl\Model\Table\AcosTable;

/**
* Permissions linking AROs with ACOs
*
*/
class PermissionsTable extends AclNodesTable
{
private Table $Aro;
private Table $Aco;
private ArosTable $Aro;
private AcosTable $Aco;

/**
* {@inheritDoc}
Expand Down

0 comments on commit 54e5876

Please sign in to comment.