src/Container/Head.php
public function twitter($title, $site, $description, $image = null, $card = 'summary')
    {
        $this->meta('twitter:card', $card);
        $this->meta('twitter:site', $site);
        $this->meta('twitter:title', $title);
        $this->meta('twitter:description', $description);
        $this->meta('twitter:card', $title);

        if (!is_null($image)) {
            $this->meta('twitter:image', $image);
        }
    }
public function twitter($title, $site, $description, $image = null, $card = 'summary')
    {
        $this->meta('twitter:card', $card);
        $this->meta('twitter:site', $site);
        $this->meta('twitter:title', $title);
        $this->meta('twitter:description', $description);
        $this->meta('twitter:card', $title);

        if (!is_null($image)) {
            $this->meta('twitter:image', $image);
        }
    }
public function twitter ( $ title , $ site , $ description , $ image = null , $ card = 'summary' ) { $ this -> meta ( 'twitter:card' , $ card ) ; $ this -> meta ( 'twitter:site' , $ site ) ; $ this -> meta ( 'twitter:title' , $ title ) ; $ this -> meta ( 'twitter:description' , $ description ) ; $ this -> meta ( 'twitter:card' , $ title ) ; if ( ! is_null ( $ image ) ) { $ this -> meta ( 'twitter:image' , $ image ) ; } }
Set twitter meta

@param string $card
@param $site
@param $title
@param $description
@param null $image
Set twitter meta