Pimcore\Model\Element\Sanitycheck::getType PHP Méthode

getType() public méthode

public getType ( ) : string
Résultat string
    public function getType()
    {
        return $this->type;
    }

Usage Example

 /**
  * @static
  * @return Sanitycheck
  */
 public static function getNext()
 {
     $sanityCheck = new Sanitycheck();
     $sanityCheck->getDao()->getNext();
     if ($sanityCheck->getId() and $sanityCheck->getType()) {
         return $sanityCheck;
     } else {
         return null;
     }
 }