src/Types/Struct.php
public function set($value)
    {
        if (!is_array($value)) {
            throw new \InvalidArgumentException('A structure was expected');
        }

        foreach ($value as $key => $val) {
            if (!is_string($key) && !is_int($key)) {
                throw new \InvalidArgumentException('A structure was expected');
            }

            if (!($val instanceof \fpoirotte\XRL\Types\AbstractType)) {
                throw new \InvalidArgumentException('A valid XML-RPC type was expected');
            }
        }

        $this->value = $value;
    }
public function set($value)
    {
        if (!is_array($value)) {
            throw new \InvalidArgumentException('A structure was expected');
        }

        foreach ($value as $key => $val) {
            if (!is_string($key) && !is_int($key)) {
                throw new \InvalidArgumentException('A structure was expected');
            }

            if (!($val instanceof \fpoirotte\XRL\Types\AbstractType)) {
                throw new \InvalidArgumentException('A valid XML-RPC type was expected');
            }
        }

        $this->value = $value;
    }
/ \copydoc fpoirotte::XRL::Types::AbstractType::set()