Skip to content

Commit 697001f

Browse files
committed
Update
1 parent 7852dd2 commit 697001f

6 files changed

Lines changed: 60 additions & 9 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"autoload": {
2525
"psr-4" : {
26-
"floatPHP\\Interfaces\\" : "src/"
26+
"FloatPHP\\Interfaces\\" : "src/"
2727
}
2828
}
2929
}

src/ControllerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* @subpackage: Interfaces Component
66
* @version : 1.0.0
77
* @category : PHP framework
8-
* @copyright : (c) JIHAD SINNAOUR <mail@jihadsinnaour.com>
8+
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
99
* @link : https://www.floatphp.com
1010
* @license : MIT License
1111
*/
1212

13-
namespace floatphp\Interfaces;
13+
namespace FloatPHP\Interfaces;
1414

1515
interface ControllerInterface {
1616

src/Kernel/OrmInterface.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage: Interfaces Kernel Component
6+
* @version : 1.0.1
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+
13+
namespace FloatPHP\Interfaces\Kernel;
14+
15+
interface OrmInterface
16+
{
17+
public function __set($name, $value);
18+
public function __get($name);
19+
public function select(OrmQueryInterface $data);
20+
public function query($sql, $isSingle);
21+
public function save($id = '0');
22+
public function create();
23+
public function delete($id = '0');
24+
public function find($id = '');
25+
public function search($fields = [], $sort = []);
26+
public function all();
27+
public function min($field);
28+
public function max($field);
29+
public function avg($field);
30+
public function sum($field);
31+
public function count($field, $data = null);
32+
public function deleteAll($table);
33+
}

src/Kernel/OrmQueryInterface.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage: Interfaces Kernel Component
6+
* @version : 1.0.1
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+
13+
namespace FloatPHP\Interfaces\Kernel;
14+
15+
interface OrmQueryInterface
16+
{
17+
public function __construct($query = []);
18+
}

src/Kernel/ViewInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
/**
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
5-
* @subpackage: Interfaces Component
6-
* @version : 1.0.0
5+
* @subpackage: Interfaces Kernel Component
6+
* @version : 1.0.1
77
* @category : PHP framework
8-
* @copyright : (c) JIHAD SINNAOUR <mail@jihadsinnaour.com>
8+
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
99
* @link : https://www.floatphp.com
1010
* @license : MIT License
1111
*/
1212

13-
namespace floatphp\Interfaces\Kernel;
13+
namespace FloatPHP\Interfaces\Kernel;
1414

1515
interface ViewInterface
1616
{

src/ModelInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* @subpackage: Interfaces Component
66
* @version : 1.0.0
77
* @category : PHP framework
8-
* @copyright : (c) JIHAD SINNAOUR <mail@jihadsinnaour.com>
8+
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <mail@jihadsinnaour.com>
99
* @link : https://www.floatphp.com
1010
* @license : MIT License
1111
*/
1212

13-
namespace floatphp\Interfaces;
13+
namespace FloatPHP\Interfaces;
1414

1515
interface ModelInterface
1616
{

0 commit comments

Comments
 (0)