Menu

## CronExpression_YearField extends CronExpression_AbstractField
in package

CronExpression_YearField.php : 8

Year field. Allows: * , / -

##### Tags

author

  Michael Dowling mtdowling@gmail.com

### Table of Contents

increment() : mixed
  {@inheritdoc}
isIncrementsOfRanges() : bool
  Check if a value is an increments of ranges
isInIncrementsOfRanges() : bool
  Test if a value is within an increments of ranges (offset[-to]/step size)
isInRange() : bool
  Test if a value is within a range
isRange() : bool
  Check if a value is a range
isSatisfied() : bool
  Check to see if a field is satisfied by a value
isSatisfiedBy() : mixed
  {@inheritdoc}
validate() : mixed
  {@inheritdoc}

### Methods

#### increment()

CronExpression_YearField.php : 21

{@inheritdoc}

`public increment(DateTime $date[, mixed $invert = false ]) : mixed`

##### Parameters

$date : DateTime
$invert : mixed = false

##### Return values

mixed —

#### isIncrementsOfRanges()

CronExpression_AbstractField.php : 48

Check if a value is an increments of ranges

`public isIncrementsOfRanges(string $value) : bool`

##### Parameters

$value : string

  Value to test

##### Return values

bool —

#### isInIncrementsOfRanges()

CronExpression_AbstractField.php : 76

Test if a value is within an increments of ranges (offset[-to]/step size)

`public isInIncrementsOfRanges(string $dateValue, string $value) : bool`

##### Parameters

$dateValue : string

  Set date value

$value : string

  Value to test

##### Return values

bool —

#### isInRange()

CronExpression_AbstractField.php : 61

Test if a value is within a range

`public isInRange(string $dateValue, string $value) : bool`

##### Parameters

$dateValue : string

  Set date value

$value : string

  Value to test

##### Return values

bool —

#### isRange()

CronExpression_AbstractField.php : 36

Check if a value is a range

`public isRange(string $value) : bool`

##### Parameters

$value : string

  Value to test

##### Return values

bool —

#### isSatisfied()

CronExpression_AbstractField.php : 18

Check to see if a field is satisfied by a value

`public isSatisfied(string $dateValue, string $value) : bool`

##### Parameters

$dateValue : string

  Date value to check

$value : string

  Value to test

##### Return values

bool —

#### isSatisfiedBy()

CronExpression_YearField.php : 13

{@inheritdoc}

`public isSatisfiedBy(DateTime $date, mixed $value) : mixed`

##### Parameters

$date : DateTime
$value : mixed

##### Return values

mixed —

#### validate()

CronExpression_YearField.php : 39

{@inheritdoc}

`public validate(mixed $value) : mixed`

##### Parameters

$value : mixed

##### Return values

mixed —

## Search results