Exemple #1
0
 /**
  * Get blameable fields.
  *
  * @return array
  */
 protected function getFields()
 {
     if (!isset($this->fields)) {
         $this->fields = BlameableObserver::findBlameableFields($this, $this->blameable);
     }
     return $this->fields;
 }
Exemple #2
0
 /**
  * Get blameable fields.
  *
  * @return array
  */
 protected function getFields()
 {
     // Abort if blameble has been disabled explicitly
     if ($this->blameable === false) {
         return false;
     }
     if (!isset($this->fields)) {
         $this->fields = BlameableObserver::findBlameableFields($this, $this->blameable);
     }
     return $this->fields;
 }