Esensi\Model\Contracts\HashingModelInterface::getHashing PHP 메소드

getHashing() 공개 메소드

Returns whether or not the model will hash attributes before saving.
public getHashing ( ) : boolean
리턴 boolean
    public function getHashing();

Usage Example

예제 #1
0
 /**
  * Check if hashing is enabled and then hash the attributes
  * that need hashing.
  *
  * @param Esensi\Model\Contracts\HashingModelInterface $model
  * @param string                                       $event name
  */
 protected function performHashing(HashingModelInterface $model, $event)
 {
     if ($model->getHashing()) {
         $model->hashAttributes();
     }
 }