Skip to content

Commit 09a29f2

Browse files
committed
Update
1 parent c5e3d71 commit 09a29f2

10 files changed

Lines changed: 116 additions & 36 deletions
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
/**
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
5-
* @subpackage: Interfaces Component
5+
* @subpackage: Interfaces Kernel Component
66
* @version : 1.0.0
77
* @category : PHP framework
88
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
99
* @link : https://www.floatphp.com
1010
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
1113
*/
1214

13-
namespace FloatPHP\Interfaces;
15+
namespace FloatPHP\Interfaces\Kernel;
1416

15-
interface ControllerInterface {
16-
17-
}
17+
interface ApiInterface {}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage: Interfaces Kernel Component
6+
* @version : 1.0.0
7+
* @category : PHP framework
8+
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
9+
* @link : https://www.floatphp.com
10+
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
13+
*/
14+
15+
namespace FloatPHP\Interfaces\Kernel;
16+
17+
interface AuthMiddlewareInterface {}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage: Interfaces Kernel Component
6+
* @version : 1.0.0
7+
* @category : PHP framework
8+
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
9+
* @link : https://www.floatphp.com
10+
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
13+
*/
14+
15+
namespace FloatPHP\Interfaces\Kernel;
16+
17+
interface AuthenticationInterface
18+
{
19+
function getUser($username);
20+
function getKey();
21+
}

src/Kernel/BackendInterface.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage: Interfaces Kernel Component
6+
* @version : 1.0.0
7+
* @category : PHP framework
8+
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
9+
* @link : https://www.floatphp.com
10+
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
13+
*/
14+
15+
namespace FloatPHP\Interfaces\Kernel;
16+
17+
interface BackendInterface {}

src/Kernel/FrontInterface.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage: Interfaces Kernel Component
6+
* @version : 1.0.0
7+
* @category : PHP framework
8+
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
9+
* @link : https://www.floatphp.com
10+
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
13+
*/
14+
15+
namespace FloatPHP\Interfaces\Kernel;
16+
17+
interface FrontInterface {}

src/Kernel/ModelInterface.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage: Interfaces Kernel Component
6+
* @version : 1.0.0
7+
* @category : PHP framework
8+
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
9+
* @link : https://www.floatphp.com
10+
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
13+
*/
14+
15+
namespace FloatPHP\Interfaces;
16+
17+
interface ModelInterface
18+
{
19+
function all();
20+
function create();
21+
function save($id);
22+
function delete($id);
23+
function find($id);
24+
function search($fields = [], $sort = []);
25+
function min($field);
26+
function max($field);
27+
function avg($field);
28+
function sum($field);
29+
function count($field);
30+
}

src/Kernel/OrmInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage: Interfaces Kernel Component
6-
* @version : 1.0.1
6+
* @version : 1.0.0
77
* @category : PHP framework
88
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
99
* @link : https://www.floatphp.com
1010
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
1113
*/
1214

1315
namespace FloatPHP\Interfaces\Kernel;

src/Kernel/OrmQueryInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage: Interfaces Kernel Component
6-
* @version : 1.0.1
6+
* @version : 1.0.0
77
* @category : PHP framework
88
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
99
* @link : https://www.floatphp.com
1010
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
1113
*/
1214

1315
namespace FloatPHP\Interfaces\Kernel;

src/Kernel/ViewInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage: Interfaces Kernel Component
6-
* @version : 1.0.1
6+
* @version : 1.0.0
77
* @category : PHP framework
88
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
99
* @link : https://www.floatphp.com
1010
* @license : MIT License
11+
*
12+
* This file if a part of FloatPHP Framework
1113
*/
1214

1315
namespace FloatPHP\Interfaces\Kernel;

src/ModelInterface.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)