Omnipay\Common\CreditCard::getStartDate PHP Méthode

getStartDate() public méthode

Get the card start date, using the specified date format string
public getStartDate ( string $format ) : string
$format string
Résultat string
    public function getStartDate($format)
    {
        return gmdate($format, gmmktime(0, 0, 0, $this->getStartMonth(), 1, $this->getStartYear()));
    }

Usage Example

Exemple #1
0
 public function testStartDate()
 {
     $this->card->setStartMonth('11');
     $this->card->setStartYear('2012');
     $this->assertEquals('112012', $this->card->getStartDate('mY'));
 }
CreditCard