CronLingo\Parser::parse PHP 메소드

parse() 공개 메소드

Parse a string into a CRON expression
public parse ( $value ) : string
$value
리턴 string
    public function parse($value)
    {
        $this->tokens = $this->lex($value);
        $this->reset();
        $this->evaluate();
        return (string) $this->cron;
    }

Usage Example

예제 #1
0
파일: test.php 프로젝트: ajbdev/cronlingo
<?php

require 'vendor/autoload.php';
use CronLingo\Parser;
$parser = new Parser();
array_shift($argv);
echo $parser->parse(implode(' ', $argv)) . PHP_EOL;