-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
569 additions
and
1,132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ matrix: | |
- php: 7.0 | ||
- php: 5.6 | ||
- php: 5.5 | ||
- php: 5.4 | ||
- php: hhvm | ||
sudo: required | ||
dist: trusty | ||
|
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
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,22 @@ | ||
<?php | ||
/** | ||
* AnimeDb package. | ||
* | ||
* @author Peter Gribanov <[email protected]> | ||
* @copyright Copyright (c) 2011, Peter Gribanov | ||
*/ | ||
|
||
namespace AnimeDb\SmartSleep\Rule; | ||
|
||
interface HourIntervalRule extends Rule | ||
{ | ||
/** | ||
* @return int | ||
*/ | ||
public function start(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function end(); | ||
} |
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,54 @@ | ||
<?php | ||
/** | ||
* AnimeDb package. | ||
* | ||
* @author Peter Gribanov <[email protected]> | ||
* @copyright Copyright (c) 2011, Peter Gribanov | ||
*/ | ||
|
||
namespace AnimeDb\SmartSleep\Rule; | ||
|
||
trait HourlyIntervalRuleTrait | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
private $start = -1; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $end = -1; | ||
|
||
/** | ||
* @param int $start | ||
*/ | ||
protected function setStart($start) | ||
{ | ||
$this->start = $start; | ||
} | ||
|
||
/** | ||
* @param int $end | ||
*/ | ||
protected function setEnd($end) | ||
{ | ||
$this->end = $end; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function start() | ||
{ | ||
return $this->start; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function end() | ||
{ | ||
return $this->end; | ||
} | ||
} |
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
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
Oops, something went wrong.