Zend\Code\Generator\ClassGenerator::hasProperty PHP Method

hasProperty() public method

public hasProperty ( string $propertyName ) : boolean
$propertyName string
return boolean
    public function hasProperty($propertyName)
    {
        return isset($this->properties[$propertyName]);
    }

Usage Example

    /**
     * @group ZF-7361
     */
    public function testHasProperty()
    {
        $classGenerator = new ClassGenerator();
        $classGenerator->addProperty('propertyOne');

        $this->assertTrue($classGenerator->hasProperty('propertyOne'));
    }
All Usage Examples Of Zend\Code\Generator\ClassGenerator::hasProperty