src/Resource/Account.php
public function setCompanyOpeningDate($openingDate)
    {
        if ($openingDate instanceof \DateTime) {
            $openingDate = $openingDate->format('Y-m-d');
        }
        $this->initializeCompany();
        $this->data->company->openingDate = $openingDate;

        return $this;
    }
public function setCompanyOpeningDate($openingDate)
    {
        if ($openingDate instanceof \DateTime) {
            $openingDate = $openingDate->format('Y-m-d');
        }
        $this->initializeCompany();
        $this->data->company->openingDate = $openingDate;

        return $this;
    }
public function setCompanyOpeningDate ( $ openingDate ) { if ( $ openingDate instanceof \ DateTime ) { $ openingDate = $ openingDate -> format ( 'Y-m-d' ) ; } $ this -> initializeCompany ( ) ; $ this -> data -> company -> openingDate = $ openingDate ; return $ this ; }
Set company opening date.

@param \DateTime|string $openingDate .

@return $this
Set company opening date .