Cronario\AbstractJob::addDefaultData PHP Method

addDefaultData() protected method

protected addDefaultData ( )
    protected function addDefaultData()
    {
        $currentTime = time();
        if (!$this->hasData(self::P_CREATE_ON)) {
            $this->setCreateOn($currentTime);
        }
        if (!$this->hasData(self::P_START_ON)) {
            $this->setStartOn($currentTime);
        }
        if (!$this->hasData(self::P_DELETE_ON)) {
            $this->setDeleteOn(strtotime(static::DEFAULT_DELETE_DELAY));
        }
        if (!$this->hasData(self::P_EXPIRED_ON)) {
            $this->setExpiredOn(strtotime(static::DEFAULT_EXPIRED_DELAY));
        }
        if (!$this->hasData(self::P_JOB_CLASS)) {
            $this->setJobClass('\\' . ltrim(get_class($this), "\\"));
        }
        if (!$this->hasData(self::P_APP_ID)) {
            $this->setAppId(Producer::DEFAULT_APP_ID);
        }
    }