Skip to content

Commit

Permalink
adjusted interfaces/classes
Browse files Browse the repository at this point in the history
  • Loading branch information
doganoo committed Sep 25, 2018
1 parent 0ae6cd0 commit be8f211
Showing 1 changed file with 30 additions and 35 deletions.
65 changes: 30 additions & 35 deletions src/Common/IPermission.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<?php
/**
* MIT License
*
* Copyright (c) 2018 Dogan Ucar
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand All @@ -25,7 +21,6 @@

namespace doganoo\SimpleRBAC\Common;


use doganoo\PHPAlgorithms\Common\Interfaces\Comparable;
use doganoo\PHPAlgorithms\Datastructure\Graph\Tree\BinarySearchTree;

Expand All @@ -34,34 +29,34 @@
*
* @package doganoo\SimpleRBAC\Common
*/
interface IPermission extends Comparable {
/**
* @return string
*/
public function getName(): string;

/**
* @param string $name
*/
public function setName(string $name): void;

/**
* @return BinarySearchTree|null
*/
public function getRoles(): ?BinarySearchTree;

/**
* @param BinarySearchTree|null $roles
*/
public function setRoles(?BinarySearchTree $roles): void;

/**
* @return int
*/
public function getId(): int;

/**
* @param int $id
*/
public function setId(int $id): void;
interface IPermission extends Comparable{
/**
* @return string
*/
public function getName(): string;

/**
* @param string $name
*/
public function setName(string $name): void;

/**
* @return BinarySearchTree|null
*/
public function getRoles(): ?BinarySearchTree;

/**
* @param BinarySearchTree|null $roles
*/
public function setRoles(?BinarySearchTree $roles): void;

/**
* @return int
*/
public function getId(): int;

/**
* @param int $id
*/
public function setId(int $id): void;
}

0 comments on commit be8f211

Please sign in to comment.