<?php
namespace IZON\Admin\Dao;

use IZON\DB\Dao;
use IZON\DB\QueryResult;

use IZON\Admin\Domain\AdminRole;

interface AdminRoleDao extends Dao {
    
    /**
     * pro jakou tridu se toto dao pouziva
     */
    const DOMAIN_CLASS = AdminRole::class;

    /**
     * 
     * @param int $userId
     * @return QueryResult result
     */
    public function findUserRoles($userId);
    
    /**
     * 
     * @param int $moduleId
     * @return QueryResult
     */
    public function findModuleRoles($moduleId);
}