Returns available properties with their values as a simple hash.

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

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

        return $hash;
    }
505581
public function build()
    {
        return array_filter(
            $this->flatMap($this->acceptedProperties, function ($property) {
                return [$property => $this->getValueForProperty($property)];
            })
        );
    }
364295
public function properties() {
        return $this->cache(__METHOD__, function() {
            return array_unique(array_merge(
                $this->publicProperties(),
                $this->protectedProperties(),
                $this->privateProperties(),
                $this->staticProperties()
            ));
        });
    }
875367
public function getAllProperties()
    {
        $props = array();
        foreach ($this->dynamic as $k => $c) {
            $props[$k] = $c();
        }

        return array_replace($props, $this->properties);
    }
1291768
public function getProperties()
    {
        //build URI to merge Docs
        $strURI = Product::$baseProductUri . '/words/' . $this->getFileName() . '/documentProperties';

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);


        if ($json->Code == 200) {
            return $json->DocumentProperties->List;
        }
        
        AsposeApp::getLogger()->warning('Error occured, http 200 code was not found.', array(
            'json-code' => $json->Code,
        ));
        return false;
    }
645457
public function getPropertiesAsArray()
    {
        $array = array();

        foreach ($this->getProperties() as $property) {
            $array[$property->getName()] = [ 'value' => $property->getValue(), 'type' => $property->getType() ];
        }

        return $array;
    }
1290536
public function getProperties()
    {
        if ($this->properties === null) {
            // lazy load class properties list
            $this->properties = array();
            foreach ($this->node->stmts as $stmt) {
                if ($stmt instanceof Node\Stmt\Property) {
                    $this->properties[] = new PropertyModel($this, $stmt);
                }
            }
        }
        return array_values($this->properties);
    }
387342
public function getPropertiesNames() {
		$propertiesList = [];
		
		foreach($this->_data as $item) {
			$propertiesList += array_keys($item);
		}
		
		return $propertiesList;
	}
98955
public function getHash()
    {
        ksort($this->possibilities);

        foreach ($this->possibilities as &$possible_types) {
            sort($possible_types);
        }

        $possibility_string = json_encode($this->possibilities);
        if (!$possibility_string) {
            return (string)rand(0, 10000000);
        }

        return md5($possibility_string) .
            ($this->wedge || !$this->reconcilable ? spl_object_hash($this) : '');
    }
389625
public function getSearchProperties()
    {
        static $props;
        if (null !== $props) {
            return $props;
        }

        $props = [];
        foreach ($this->getProperties() as $key => $property) {
            if (false === $property->isSearchProperty()) {
                continue;
            }
            $props[$key] = $property;
        }
        return $props;
    }
1149661
public static function getPossibleValues(): array
    {
        return [
            self::POST,
            self::PUT,
            self::PATCH,
            self::DELETE,
            self::GET,
        ];
    }
698929
public function getClassProperties()
    {
        if (empty($this->_properties)) {
            $properties = $this->_getReflection()->getProperties();
            foreach ($properties as $property) {
                $this->_properties[] = $property->getName();
            }
        }
        return $this->_properties;
    }
141348
def to_hash
      out = {}
      self.class.properties.each { |p| out[hash_key(p)] = hash_value(p) }
      out
    end
431188
public function getVisibleRpAttributes()
    {
        if ($this->visible_properties)
        {
            return (array) $this->visible_properties;
        } else
        {
            $this->model->relatedPropertiesModel->initAllProperties();
            $attributes = $this->model->relatedPropertiesModel->toArray();
            if ($attributes)
            {
                return array_keys($attributes);
            } else
            {
                return [];
            }
        }
    }
121756
public function toArray()
    {
        if ($this->gettersVariable) {
            $var = $this->gettersVariable;

            return $this->{$var};
        }

        $properties = (array)$this;
        $list = [];
        foreach ($properties as $property => $value) {
            if ($property[0] !== "\0") {
                $list[$property] = $value;
            }
        }

        return $list;
    }
81244
public function buildProperties()
    {
        $methods            = get_class_methods($this);
        $properties         = get_object_vars($this);
        $filteredProperties = array();

        // only properties that have getters should be extracted
        foreach ($properties as $property => $value) {
            $getter = 'get' . $this->camelize($property, true);
            if (in_array($getter, $methods)) {
                $filteredProperties[$property] = $this->{$getter}();
            }
        }

        return $filteredProperties;
    }
614740
public function toArray()
	{
		$properties = parent::toArray();

		$properties[$this->_prefix . 'refid'] = $this->getRefId();
		$properties[$this->_prefix . 'position'] = $this->getPosition();

		return $properties;
	}