src/Filter/ViewModelTemplateFilterAbstract.php
protected function setDescription()
    {
        if (!isset($this->job)) {
            throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job');
        }

        if (empty($this->job->getTemplateValues()->getDescription()) && is_object($this->job->getOrganization())) {
            $this->job->getTemplateValues()->setDescription($this->job->getOrganization()->getDescription());
        }
        $description = $this->job->getTemplateValues()->getDescription();

        $this->container['description'] = isset($description)?$description:'';
        return $this;
    }
protected function setDescription()
    {
        if (!isset($this->job)) {
            throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job');
        }

        if (empty($this->job->getTemplateValues()->getDescription()) && is_object($this->job->getOrganization())) {
            $this->job->getTemplateValues()->setDescription($this->job->getOrganization()->getDescription());
        }
        $description = $this->job->getTemplateValues()->getDescription();

        $this->container['description'] = isset($description)?$description:'';
        return $this;
    }
protected function setDescription ( ) { if ( ! isset ( $ this -> job ) ) { throw new \ InvalidArgumentException ( 'cannot create a viewModel for Templates without a $job' ) ; } if ( empty ( $ this -> job -> getTemplateValues ( ) -> getDescription ( ) ) && is_object ( $ this -> job -> getOrganization ( ) ) ) { $ this -> job -> getTemplateValues ( ) -> setDescription ( $ this -> job -> getOrganization ( ) -> getDescription ( ) ) ; } $ description = $ this -> job -> getTemplateValues ( ) -> getDescription ( ) ; $ this -> container [ 'description' ] = isset ( $ description ) ? $ description : '' ; return $ this ; }
Sets the company description of a job. Use the description of an organization as default

@return $this
@throws \InvalidArgumentException
Sets the company description of a job . Use the description of an organization as default