@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | class NoRecordDeletionException extends Exception |
14 | 14 | { |
15 | - public static function create($message) |
|
16 | - { |
|
17 | - return new static($message); |
|
15 | + public static function create($message) |
|
16 | + { |
|
17 | + return new static($message); |
|
18 | 18 | |
19 | - } |
|
19 | + } |
|
20 | 20 | } |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | class NoRecordDeletionException extends Exception |
14 | 14 | { |
15 | - public static function create($message) |
|
16 | - { |
|
17 | - return new static($message); |
|
15 | + public static function create($message) |
|
16 | + { |
|
17 | + return new static($message); |
|
18 | 18 | |
19 | - } |
|
19 | + } |
|
20 | 20 | } |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | class NoRecordDeletionException extends Exception |
14 | 14 | { |
15 | - public static function create($message) |
|
16 | - { |
|
17 | - return new static($message); |
|
15 | + public static function create($message) |
|
16 | + { |
|
17 | + return new static($message); |
|
18 | 18 | |
19 | - } |
|
19 | + } |
|
20 | 20 | } |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | class NoRecordDeletionException extends Exception |
14 | 14 | { |
15 | - public static function create($message) |
|
16 | - { |
|
17 | - return new static($message); |
|
15 | + public static function create($message) |
|
16 | + { |
|
17 | + return new static($message); |
|
18 | 18 | |
19 | - } |
|
19 | + } |
|
20 | 20 | } |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | class NoRecordDeletionException extends Exception |
14 | 14 | { |
15 | - public static function create($message) |
|
16 | - { |
|
17 | - return new static($message); |
|
15 | + public static function create($message) |
|
16 | + { |
|
17 | + return new static($message); |
|
18 | 18 | |
19 | - } |
|
19 | + } |
|
20 | 20 | } |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | class NoRecordDeletionException extends Exception |
14 | 14 | { |
15 | - public static function create($message) |
|
16 | - { |
|
17 | - return new static($message); |
|
15 | + public static function create($message) |
|
16 | + { |
|
17 | + return new static($message); |
|
18 | 18 | |
19 | - } |
|
19 | + } |
|
20 | 20 | } |
@@ -10,31 +10,31 @@ |
||
10 | 10 | |
11 | 11 | interface BaseModelInterface { |
12 | 12 | |
13 | - /** |
|
14 | - * This method gets all the record from a particular table |
|
15 | - * @params void |
|
16 | - * @return associative array |
|
17 | - */ |
|
18 | - public static function getAll(); |
|
13 | + /** |
|
14 | + * This method gets all the record from a particular table |
|
15 | + * @params void |
|
16 | + * @return associative array |
|
17 | + */ |
|
18 | + public static function getAll(); |
|
19 | 19 | |
20 | - /** |
|
21 | - * This method create or update record in a database table |
|
22 | - * @params void |
|
23 | - * @return boolean true or false; |
|
24 | - */ |
|
25 | - public function save(); |
|
20 | + /** |
|
21 | + * This method create or update record in a database table |
|
22 | + * @params void |
|
23 | + * @return boolean true or false; |
|
24 | + */ |
|
25 | + public function save(); |
|
26 | 26 | |
27 | - /** |
|
28 | - * This method delete a row from the table by the row id |
|
29 | - * @params int $id |
|
30 | - * @return boolean true or false |
|
31 | - */ |
|
32 | - public static function destroy($id); |
|
27 | + /** |
|
28 | + * This method delete a row from the table by the row id |
|
29 | + * @params int $id |
|
30 | + * @return boolean true or false |
|
31 | + */ |
|
32 | + public static function destroy($id); |
|
33 | 33 | |
34 | - /** |
|
35 | - * This method find a record by id |
|
36 | - * @params int $id |
|
37 | - * @return object find |
|
38 | - */ |
|
39 | - public static function find($id); |
|
34 | + /** |
|
35 | + * This method find a record by id |
|
36 | + * @params int $id |
|
37 | + * @return object find |
|
38 | + */ |
|
39 | + public static function find($id); |
|
40 | 40 | } |