-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning code, independent on nette/utils
- Loading branch information
MartkCz
committed
Aug 26, 2016
1 parent
fe19567
commit db06ce0
Showing
22 changed files
with
777 additions
and
749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace WebChemistry\Invoice\Components; | ||
|
||
use WebChemistry\Invoice\Data\Item; | ||
|
||
interface IPaginator { | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getTotalPages(); | ||
|
||
/** | ||
* @return Item[] | ||
*/ | ||
public function getItems(); | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function isLastPage(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getCurrentPage(); | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function nextPage(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace WebChemistry\Invoice\Components; | ||
|
||
use WebChemistry\Invoice\Data\Item; | ||
|
||
interface IPaginatorFactory { | ||
|
||
/** | ||
* @param Item[] $items | ||
* @return IPaginator | ||
*/ | ||
public function createPaginator(array $items); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace WebChemistry\Invoice\Components; | ||
|
||
use WebChemistry\Invoice\Data\Item; | ||
|
||
class PaginatorFactory implements IPaginatorFactory { | ||
|
||
/** | ||
* @param Item[] $items | ||
* @return Paginator | ||
*/ | ||
public function createPaginator(array $items) { | ||
return new Paginator($items); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.