src/SEOTools/OpenGraph.php
public function addImage($source = null, $attributes = [])
    {
        $validKeys = [
            'url',
            'secure_url',
            'type',
            'width',
            'height',
        ];

        if (is_array($source)) {
            $this->images[] = $this->cleanProperties($source, $validKeys);
        } else {
            $this->images[] = [
                $source,
                $this->cleanProperties($attributes, $validKeys),
            ];
        }

        return $this;
    }
public function addImage($source = null, $attributes = [])
    {
        $validKeys = [
            'url',
            'secure_url',
            'type',
            'width',
            'height',
        ];

        if (is_array($source)) {
            $this->images[] = $this->cleanProperties($source, $validKeys);
        } else {
            $this->images[] = [
                $source,
                $this->cleanProperties($attributes, $validKeys),
            ];
        }

        return $this;
    }
public function addImage ( $ source = null , $ attributes = [ ] ) { $ validKeys = [ 'url' , 'secure_url' , 'type' , 'width' , 'height' , ] ; if ( is_array ( $ source ) ) { $ this -> images [ ] = $ this -> cleanProperties ( $ source , $ validKeys ) ; } else { $ this -> images [ ] = [ $ source , $ this -> cleanProperties ( $ attributes , $ validKeys ) , ] ; } return $ this ; }
Add image to properties.

@param mixed $source     URL of image source
@param array $attributes Object type attributes

@return OpenGraphContract
Add image to properties .