@param array $data

@throws \OutOfBoundsException
971054
public function hydrate(array $data): void
    {
        if (!$data) {
            return;
        }

        if ($this->hydrationProperties === null || $this->hydrationSetters === null) {
            $reflection = new \ReflectionClass($this);
            $this->hydrationProperties = array_map(function ($v) {
                return $v->name;
            }, $reflection->getProperties(\ReflectionProperty::IS_PUBLIC));

            $this->hydrationSetters = array_filter(array_map(function ($v) {
                return strpos($v->name, 'set') === 0 ? $v->name : null;
            }, $reflection->getMethods(\ReflectionMethod::IS_PUBLIC)));
        }

        $camelCaseConvert = function ($v) {
            if (strpos($v, '_') === false) {
                return $v;
            }

            $v = explode('_', $v);

            $first = array_shift($v);
            $v = array_map('ucfirst', $v);

            return $first . implode('', $v);
        };

        foreach ($data as $key => $value) {
            if (in_array($key, $this->hydrationProperties, true)) {
                $this->{$key} = $value;
            } else {
                $camelCaseKey = $camelCaseConvert($key);
                $setter = 'set' . ucfirst($camelCaseKey);

                if ($camelCaseKey !== $key && in_array($camelCaseKey, $this->hydrationProperties, true)) {
                    $this->{$camelCaseKey} = $value;
                } elseif (in_array($setter, $this->hydrationSetters, true)) {
                    $this->$setter($value);
                } else {
                    throw new \OutOfBoundsException(sprintf(
                        'Invalid attribute provided "%s"',
                        $key
                    ));
                }
            }
        }
    }
1058019
public function writeArray($data) {

            if (!count($data)) {
                $this->stream->writeLong(0);
            } else {
                end($data);
                $last = key($data);
                $this->stream->writeLong($last+1);
                for($i=0;$i<=$last;$i++) {
                    if (isset($data[$i])) {
                        $this->writeAMFData($data[$i]);
                    } else {
                        $this->stream->writeByte(SabreAMF_AMF0_Const::DT_UNDEFINED);
                    }
                }
            }

        }
694916
public function setData($data) {
        if (!empty($data)) {
            foreach($data as $key=>$value) {
                $this->_data[$key] = $value;
            }
        } else {
            $this->_data = array();
        }
    }
1292990
private static function validateUnserializedData(array $data): void
    {
        /** Let's check if there are mandatory fields */
        if (
            false === isset($data['namespace']) ||
            false === isset($data['message'])
        ) {
            throw new \UnexpectedValueException(
                'The serialized data must contains a "namespace" field (indicates the message class) and "message" (indicates the message parameters)'
            );
        }

        /** Let's check if the specified class exists */
        if ('' === $data['namespace'] || false === \class_exists((string) $data['namespace']))
        {
            throw new \UnexpectedValueException(
                \sprintf('Class "%s" not found', $data['namespace'])
            );
        }
    }
741106
public function setDataFromArray(array $data)
    {
        foreach ($data as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (method_exists($this, $method)) {
                $this->$method($value);
            }
        }
    }
725448
public function fromArray($data)
    {
        if ($data) {
            if (isset($data['tags'])) {
                $this->setTags($data['tags']);
            }

            if (isset($data['ts'])) {
                $this->setTimestamp($data['ts']);
            }

            if (isset($data['type'])) {
                $this->setType($data['type']);
            }

            if (isset($data['target'])) {
                $this->setTarget($data['target']);
            }
        }
    }
889175
public function setData(array $data): self
    {
        assert(count($data) == 2);

        [$allowedEvents, $subscribers] = $data;

        assert($this->checkAllSubscribersAreStatic($subscribers) === true);

        return $this->setAllowedEvents($allowedEvents)->setSubscribers($subscribers);
    }
853177
public function setData($data = array())
    {
        

    	//empty local data
    	$this->rows = array();
    	//fill the local data
		foreach($data as $rowId => $cells){
			if(is_array($cells)){
				$this->addRow($rowId, $cells);
			}else if(is_string($cells)){
				$this->addRow($cells);
			}
		}

        
    }
61922
public function setData(array $data): void {
		if ($this->compiled) {
			throw new ViewException("Attempt to alter view after compilation.", ViewException::AFTER_COMPILE_ALTERATION);
		}
		// to avoid overwriting any data that has already been set
		// using setDatum(), we don't want to do a simple assignment.
		// instead, we'll more carefully copy information from $data
		// to the data property.
		
		foreach ($data as $index => $datum) {
			$this->setDatum($index, $datum);
		}
	}
604192
public function exchangeArray(array $data): void
    {
        foreach ($data as $key => $value) {
            $this->{$key} = (!empty($value)) ? $value : null;
        }
    }
426437
public function load(array $data)
    {
        foreach ($data as $index => $value) {
            $this->set($index, $value);
        }
    }
204287
public function setLoginData(array $data)
    {
        $data = Helpers::parseLoginData($data);
        $this->getUser()->setLoginData($data[User::ID_LOGIN], $data[User::ID_ROLE], $data[User::ID_UNIT], $data[User::LOGOUT_DATE]);
    }
1148412
public function data($data)
    {
        if ($data instanceof Arrayable) {
            $data = $data->toArray();
        }

        $this->data = $data;
    }
907000
public function bind(array $data)
    {
        foreach ($data as $property => $value) {
            if ($this->has($property)) {
                $this->$property = $value;
            }
        }
    }
874965
public function mergeData(array $data)
    {
        $args = func_get_args();
        foreach ($args as $key => $v) {
            if (is_array($v)) {
                $this->data = array_merge($this->data, $v);
            }
        }
    }
1286634
public function seek($position) {

         if ( array_key_exists($position, $this->data) ) {
             throw new OutOfBoundsException("invalid seek position ($position)");
         }

         $this->position = $position;

     }
233030
public function set(array $data)
    {
        $this->data = [];
        $this->replace = false;

        foreach ($data as $key => $value) {
            $this->add($key, $value);
        }
    }