src/generators/ComponentGenerator.php
public function validateReservedKeyword($attribute, $params)
    {
        if ($this->isReservedKeyword($this->$attribute)) {
            $this->addError($attribute, $this->getAttributeLabel($attribute) . ' cannot be a reserved PHP keyword.');
        }
    }
public function validateReservedKeyword($attribute, $params)
    {
        if ($this->isReservedKeyword($this->$attribute)) {
            $this->addError($attribute, $this->getAttributeLabel($attribute) . ' cannot be a reserved PHP keyword.');
        }
    }
public function validateReservedKeyword ( $ attribute , $ params ) { if ( $ this -> isReservedKeyword ( $ this -> $ attribute ) ) { $ this -> addError ( $ attribute , $ this -> getAttributeLabel ( $ attribute ) . ' cannot be a reserved PHP keyword.' ) ; } }
Validates an attribute to make sure it is not a reserved PHP keyword.

@param string $attribute the attribute to validate.
@param array $params validation parameters.
Validates an attribute to make sure it is not a reserved PHP keyword .