From 2ff8b247e79df15dafa77f3bf1cfe118e913792a Mon Sep 17 00:00:00 2001 From: lablnet Date: Fri, 27 Nov 2020 19:30:32 +0500 Subject: [PATCH 1/2] fix for #154 --- src/Contracts/Schedule/Schedule.php | 22 ++++++++++++++ src/Contracts/Schedule/Task.php | 22 ++++++++++++++ src/Contracts/Schedule/parser/Cron.php | 31 +++++++++++++++++++ src/Contracts/Schedule/parser/Expression.php | 32 ++++++++++++++++++++ src/Contracts/Schedule/parser/Scheduler.php | 32 ++++++++++++++++++++ src/Schedule/Schedule.php | 22 ++++++++++++++ src/Schedule/Task.php | 22 ++++++++++++++ src/Schedule/parser/Cron.php | 22 ++++++++++++++ src/Schedule/parser/Expression.php | 22 ++++++++++++++ src/Schedule/parser/Scheduler.php | 22 ++++++++++++++ 10 files changed, 249 insertions(+) create mode 100644 src/Contracts/Schedule/Schedule.php create mode 100644 src/Contracts/Schedule/Task.php create mode 100644 src/Contracts/Schedule/parser/Cron.php create mode 100644 src/Contracts/Schedule/parser/Expression.php create mode 100644 src/Contracts/Schedule/parser/Scheduler.php create mode 100644 src/Schedule/Schedule.php create mode 100644 src/Schedule/Task.php create mode 100644 src/Schedule/parser/Cron.php create mode 100644 src/Schedule/parser/Expression.php create mode 100644 src/Schedule/parser/Scheduler.php diff --git a/src/Contracts/Schedule/Schedule.php b/src/Contracts/Schedule/Schedule.php new file mode 100644 index 00000000..aea8b023 --- /dev/null +++ b/src/Contracts/Schedule/Schedule.php @@ -0,0 +1,22 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Contracts\Sechdule; + +interface Sechdule +{ + +} diff --git a/src/Contracts/Schedule/Task.php b/src/Contracts/Schedule/Task.php new file mode 100644 index 00000000..608428d0 --- /dev/null +++ b/src/Contracts/Schedule/Task.php @@ -0,0 +1,22 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Contracts\Sechdule; + +interface Task +{ + +} diff --git a/src/Contracts/Schedule/parser/Cron.php b/src/Contracts/Schedule/parser/Cron.php new file mode 100644 index 00000000..4536f326 --- /dev/null +++ b/src/Contracts/Schedule/parser/Cron.php @@ -0,0 +1,31 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Contracts\Sechdule\Parser; + +interface Cron +{ + /** + * Parse the expression. + * + * @param array $expression Expression to be parsed. + * + * @since 3.0.0 + * + * @return mixed + */ + public function parser($expression); +} diff --git a/src/Contracts/Schedule/parser/Expression.php b/src/Contracts/Schedule/parser/Expression.php new file mode 100644 index 00000000..3cd3f43a --- /dev/null +++ b/src/Contracts/Schedule/parser/Expression.php @@ -0,0 +1,32 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Contracts\Sechdule\Parser; + +interface Expression +{ + + /** + * Parse the expression. + * + * @param array $expression Expression to be parsed. + * + * @since 3.0.0 + * + * @return void + */ + public function __construct($expression); +} diff --git a/src/Contracts/Schedule/parser/Scheduler.php b/src/Contracts/Schedule/parser/Scheduler.php new file mode 100644 index 00000000..8c1d0b01 --- /dev/null +++ b/src/Contracts/Schedule/parser/Scheduler.php @@ -0,0 +1,32 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Contracts\Sechdule\Parser; + +interface Scheduler +{ + + /** + * Parse the expression. + * + * @param array $expression Expression to be parsed. + * + * @since 3.0.0 + * + * @return mixed + */ + public function parser($expression); +} diff --git a/src/Schedule/Schedule.php b/src/Schedule/Schedule.php new file mode 100644 index 00000000..6fb8f4f6 --- /dev/null +++ b/src/Schedule/Schedule.php @@ -0,0 +1,22 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Sechdule; + +class Sechdule +{ + +} diff --git a/src/Schedule/Task.php b/src/Schedule/Task.php new file mode 100644 index 00000000..4ccdbae4 --- /dev/null +++ b/src/Schedule/Task.php @@ -0,0 +1,22 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Sechdule; + +class Task +{ + +} diff --git a/src/Schedule/parser/Cron.php b/src/Schedule/parser/Cron.php new file mode 100644 index 00000000..e0f2f838 --- /dev/null +++ b/src/Schedule/parser/Cron.php @@ -0,0 +1,22 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Sechdule\Parser; + +class Cron +{ + +} diff --git a/src/Schedule/parser/Expression.php b/src/Schedule/parser/Expression.php new file mode 100644 index 00000000..4b6aafc6 --- /dev/null +++ b/src/Schedule/parser/Expression.php @@ -0,0 +1,22 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Sechdule\Parser; + +class Expression +{ + +} diff --git a/src/Schedule/parser/Scheduler.php b/src/Schedule/parser/Scheduler.php new file mode 100644 index 00000000..7e532fdf --- /dev/null +++ b/src/Schedule/parser/Scheduler.php @@ -0,0 +1,22 @@ + + * + * @link https://github.com/zestframework/Zest_Framework + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * @since 3.0.0 + * + * @license MIT + */ + +namespace Zest\Sechdule\Parser; + +class Scheduler +{ + +} From 47ae8721b58ecb9cb41541c99c5ce723c7b69404 Mon Sep 17 00:00:00 2001 From: Caleb Mazalevskis Date: Fri, 12 Mar 2021 16:08:22 +0800 Subject: [PATCH 2/2] StyleCI fixes. (#344) --- src/Contracts/Schedule/Schedule.php | 1 - src/Contracts/Schedule/Task.php | 1 - src/Contracts/Schedule/parser/Expression.php | 1 - src/Contracts/Schedule/parser/Scheduler.php | 1 - src/Schedule/Schedule.php | 1 - src/Schedule/Task.php | 1 - src/Schedule/parser/Cron.php | 1 - src/Schedule/parser/Expression.php | 1 - src/Schedule/parser/Scheduler.php | 1 - 9 files changed, 9 deletions(-) diff --git a/src/Contracts/Schedule/Schedule.php b/src/Contracts/Schedule/Schedule.php index aea8b023..934a825f 100644 --- a/src/Contracts/Schedule/Schedule.php +++ b/src/Contracts/Schedule/Schedule.php @@ -18,5 +18,4 @@ interface Sechdule { - } diff --git a/src/Contracts/Schedule/Task.php b/src/Contracts/Schedule/Task.php index 608428d0..1908381d 100644 --- a/src/Contracts/Schedule/Task.php +++ b/src/Contracts/Schedule/Task.php @@ -18,5 +18,4 @@ interface Task { - } diff --git a/src/Contracts/Schedule/parser/Expression.php b/src/Contracts/Schedule/parser/Expression.php index 3cd3f43a..d20d49be 100644 --- a/src/Contracts/Schedule/parser/Expression.php +++ b/src/Contracts/Schedule/parser/Expression.php @@ -18,7 +18,6 @@ interface Expression { - /** * Parse the expression. * diff --git a/src/Contracts/Schedule/parser/Scheduler.php b/src/Contracts/Schedule/parser/Scheduler.php index 8c1d0b01..a028e3de 100644 --- a/src/Contracts/Schedule/parser/Scheduler.php +++ b/src/Contracts/Schedule/parser/Scheduler.php @@ -18,7 +18,6 @@ interface Scheduler { - /** * Parse the expression. * diff --git a/src/Schedule/Schedule.php b/src/Schedule/Schedule.php index 6fb8f4f6..f3fe1f2c 100644 --- a/src/Schedule/Schedule.php +++ b/src/Schedule/Schedule.php @@ -18,5 +18,4 @@ class Sechdule { - } diff --git a/src/Schedule/Task.php b/src/Schedule/Task.php index 4ccdbae4..fbda7888 100644 --- a/src/Schedule/Task.php +++ b/src/Schedule/Task.php @@ -18,5 +18,4 @@ class Task { - } diff --git a/src/Schedule/parser/Cron.php b/src/Schedule/parser/Cron.php index e0f2f838..b7ca0d87 100644 --- a/src/Schedule/parser/Cron.php +++ b/src/Schedule/parser/Cron.php @@ -18,5 +18,4 @@ class Cron { - } diff --git a/src/Schedule/parser/Expression.php b/src/Schedule/parser/Expression.php index 4b6aafc6..ad2a4a32 100644 --- a/src/Schedule/parser/Expression.php +++ b/src/Schedule/parser/Expression.php @@ -18,5 +18,4 @@ class Expression { - } diff --git a/src/Schedule/parser/Scheduler.php b/src/Schedule/parser/Scheduler.php index 7e532fdf..92a2c12d 100644 --- a/src/Schedule/parser/Scheduler.php +++ b/src/Schedule/parser/Scheduler.php @@ -18,5 +18,4 @@ class Scheduler { - }