Esempio n. 1
0
 public function getClassPhaseDDC(\TRC\CoreBundle\Entity\DDC\PDDC $phase)
 {
     if ($phase->getActive()) {
         return 'encours';
     } else {
         if (!is_null($phase->getDatefin())) {
             return 'terminer';
         } else {
             return 'avenir';
         }
     }
 }
 /**
  * {@inheritDoc}
  */
 public function getDatefin()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDatefin', []);
     return parent::getDatefin();
 }