PHP Class FactoryGirl\Provider\Doctrine\DateIntervalHelper

Mostrar archivo Open project: breerly/factory-girl-php

Public Properties

Property Type Description
$negative boolean

Public Methods

Method Description
__construct ( DateTime $time, boolean | false $negative = false )
days ( integer $days )
get ( integer $format = self::TIMESTAMP ) : DateTime | integer | string
months ( integer $months )
years ( integer $years )

Method Details

__construct() public method

public __construct ( DateTime $time, boolean | false $negative = false )
$time DateTime
$negative boolean | false

days() public method

public days ( integer $days )
$days integer

get() public method

public get ( integer $format = self::TIMESTAMP ) : DateTime | integer | string
$format integer
return DateTime | integer | string

months() public method

public months ( integer $months )
$months integer

years() public method

public years ( integer $years )
$years integer

Property Details

$negative public_oe property

public bool $negative
return boolean