public function getState()
    {
        $hash = array();

        foreach ($this->getProperties() as $property) {
            $hash[$property] = $this->$property;
        }

        return $hash;
    }
public function getState()
    {
        $hash = array();

        foreach ($this->getProperties() as $property) {
            $hash[$property] = $this->$property;
        }

        return $hash;
    }
public function getState ( ) { $ hash = array ( ) ; foreach ( $ this -> getProperties ( ) as $ property ) { $ hash [ $ property ] = $ this -> $ property ; } return $ hash ; }
Returns available properties with their values as a simple hash.

@return array
Returns available properties with their values as a simple hash .