Zephir\ClassProperty::getName PHP Метод

getName() публичный Метод

Returns the property name
public getName ( ) : string
Результат string
    public function getName()
    {
        return $this->name;
    }

Usage Example

Пример #1
0
 /**
  * Adds a property to the definition
  *
  * @param ClassProperty $property
  * @throws CompilerException
  */
 public function addProperty(ClassProperty $property)
 {
     if (isset($this->properties[$property->getName()])) {
         throw new CompilerException("Property '" . $property->getName() . "' was defined more than one time", $property->getOriginal());
     }
     $this->properties[$property->getName()] = $property;
 }
All Usage Examples Of Zephir\ClassProperty::getName