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

getId() public méthode

public getId ( ) : integer
Résultat integer
    public function getId()
    {
        return $this->id;
    }

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;
     }
 }