Artesaos\SEOTools\OpenGraph::addAudio PHP Method

addAudio() public method

Add audio properties.
public addAudio ( string $source = null, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$source string url for audio source
$attributes array opengraph audio attributes
return Artesaos\SEOTools\Contracts\OpenGraph
    public function addAudio($source = null, $attributes = [])
    {
        $validKeys = ['url', 'secure_url', 'type'];
        $this->audioProperties[] = [$source, $this->cleanProperties($attributes, $validKeys)];
        return $this;
    }