Pimcore\Model\Element\Sanitycheck::getType PHP Method

getType() public method

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

Usage Example

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