Api\StructType\ApiExpiryDate::setMonth PHP 메소드

setMonth() 공개 메소드

Set month value
public setMonth ( string $month = null ) : ApiExpiryDate
$month string
리턴 ApiExpiryDate
    public function setMonth($month = null)
    {
        // validation for constraint: string
        if (!is_null($month) && !is_string($month)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($month)), __LINE__);
        }
        $this->month = $month;
        return $this;
    }