<?php
/**
 * IAuthorization interface
 * @author Jérôme Brilland
 * @version 1.0
 * @copyright (c) 2018, Jérôme Brilland
 * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License
 */
interface IAuthorization {

    /**
     * @param mixed $activity
     */
    public function authorize( $activity );
    
    /**
     * @param mixed $activity
     * @return boolean True if the user is authorized, false otherwise
     */
    public function isAuthorized( $activity );
    
}
