public function addSize($size, UrlContract $url)
    {
        $size = is_array($size) ? new Size($size[0], $size[1]) : $size;

        if ($size->equals($this->getSize())) {
            return $this;
        }

        $key = "$size";

        $this->sizes[$key] = $size;
        $this->sizeUrls[$key] = $url;

        return $this;
    }
public function addSize($size, UrlContract $url)
    {
        $size = is_array($size) ? new Size($size[0], $size[1]) : $size;

        if ($size->equals($this->getSize())) {
            return $this;
        }

        $key = "$size";

        $this->sizes[$key] = $size;
        $this->sizeUrls[$key] = $url;

        return $this;
    }
public function addSize ( $ size , UrlContract $ url ) { $ size = is_array ( $ size ) ? new Size ( $ size [ 0 ] , $ size [ 1 ] ) : $ size ; if ( $ size -> equals ( $ this -> getSize ( ) ) ) { return $ this ; } $ key = "$size" ; $ this -> sizes [ $ key ] = $ size ; $ this -> sizeUrls [ $ key ] = $ url ; return $ this ; }
Add an url to a different size of this attachment.

@param array|Size    $size
@param UrlContract   $url

@return $this
Add an url to a different size of this attachment .