src/AbstractTypeCollection.php
final public function put($key, $value)
    {
        $this->validateValue($value);

        return parent::put($key, $value);
    }
final public function put($key, $value)
    {
        $this->validateValue($value);

        return parent::put($key, $value);
    }
@param mixed $key
@param mixed $value

@return $this