public function insertBefore(AbstractToken $token, $type, $value = null)
    {
        $this->insertAllTokensBefore($token, array(array($type, $value, $token->getLine())));
    }
public function insertBefore(AbstractToken $token, $type, $value = null)
    {
        $this->insertAllTokensBefore($token, array(array($type, $value, $token->getLine())));
    }
public function insertBefore ( AbstractToken $ token , $ type , $ value = null ) { $ this -> insertAllTokensBefore ( $ token , array ( array ( $ type , $ value , $ token -> getLine ( ) ) ) ) ; }
Inserts a new token before the passed token.

@param \JMS\PhpManipulator\TokenStream\AbstractToken $token
@param string|integer $type either one of PHP's T_??? constants, or a literal
@param string|null $value When type is a T_??? constant, this should be its value.
Inserts a new token before the passed token .