Exemplo n.º 1
0
 public function hasMethod($name)
 {
     if ($name == 'magicBehaviorMethod') {
         return true;
     }
     return parent::hasMethod($name);
 }
Exemplo n.º 2
0
 /**
  * @param string $name
  * @return bool
  */
 public function hasMethod($name)
 {
     if ($name == 'get' . $this->getAttributeName()) {
         return true;
     }
     return parent::hasMethod($name);
 }
 /**
  * @param string $name
  *
  * @return bool
  */
 public function hasMethod($name)
 {
     if ($name === $this->methodName) {
         return is_callable([$this, $name]);
     }
     return parent::hasMethod($name);
 }
 /**
  * @inheritdoc
  */
 public function hasMethod($name)
 {
     $attribute = $this->attributeFromGetMethodUrl($name);
     return $attribute && isset($this->attributes[$attribute]) && is_array($this->attributes[$attribute]) || parent::hasMethod($name);
 }
Exemplo n.º 5
0
 /**
  * @inheritdoc
  */
 public function hasMethod($name)
 {
     if (parent::hasMethod($name)) {
         return true;
     }
     $model = $this->getRoleRelationModel();
     return $model->hasMethod($name);
 }
Exemplo n.º 6
0
 /**
  * @inheritdoc
  */
 public function hasMethod($name)
 {
     if (parent::hasMethod($name)) {
         return true;
     } else {
         if (strncmp($name, 'get', 3) === 0) {
             $name = substr($name, 3);
         }
         return $this->hasRelation($this->getRelationName($this->normalizeName($name)));
     }
 }
Exemplo n.º 7
0
 /**
  * @param string $name
  * @return bool
  */
 public function hasMethod($name)
 {
     return $this->isBehaviorAttribute(ltrim($name, 'get')) ? true : parent::hasMethod($name);
 }
Exemplo n.º 8
0
 /**
  * @inheritdoc
  */
 public function hasMethod($name)
 {
     if ($this->hasRelation($name)) {
         return true;
     }
     if ($this->hasRelationGetter($name)) {
         return true;
     }
     return parent::hasMethod($name);
 }