Zephir\ClassProperty::removeInitializationStatements PHP Method

removeInitializationStatements() protected method

Removes all initialization statements related to this property
protected removeInitializationStatements ( &$statements )
    protected function removeInitializationStatements(&$statements)
    {
        foreach ($statements as $index => $statement) {
            if (!$this->isStatic()) {
                if ($statement['expr']['left']['right']['value'] == $this->name) {
                    unset($statements[$index]);
                }
            } else {
                if ($statement['assignments'][0]['property'] == $this->name) {
                    unset($statements[$index]);
                }
            }
        }
    }