Model/MediaResponse.php
public function addself($item)
    {
        if (!($item instanceof self)) {
            if (is_array($item)) {
                try {
                    $item = new self($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate self. ' . $e->getMessage(), E_USER_WARNING);
                }
            } else {
                trigger_error('Array parameter item is not of expected type "self"!', E_USER_WARNING);
            }
        }
        $this->childMedias[] = $item;

        return $this;
    }
public function addself($item)
    {
        if (!($item instanceof self)) {
            if (is_array($item)) {
                try {
                    $item = new self($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate self. ' . $e->getMessage(), E_USER_WARNING);
                }
            } else {
                trigger_error('Array parameter item is not of expected type "self"!', E_USER_WARNING);
            }
        }
        $this->childMedias[] = $item;

        return $this;
    }
Adds an object of "ChildMedias" of the MediaResponse.

@param self|array $item

@return MediaResponse