original_string: public function get(string $variableName = null, int $type = Variables::TYPE_STRING)
      {
          if ($variableName === null) {
              throw new BadMethodCallException('Variable name must be specified');
          }
          if (isset($this->variables[$variableName])) {
              return $this->cast($this->variables[$variableName], $type);
          }
          return $this->cast(null, $type);
      }
code: public function get(string $variableName = null, int $type = Variables::TYPE_STRING)
      {
          if ($variableName === null) {
              throw new BadMethodCallException('Variable name must be specified');
          }
          if (isset($this->variables[$variableName])) {
              return $this->cast($this->variables[$variableName], $type);
          }
          return $this->cast(null, $type);
      }
code_tokens: public function get ( string $ variableName = null , int $ type = Variables :: TYPE_STRING ) { if ( $ variableName === null ) { throw new BadMethodCallException ( 'Variable name must be specified' ) ; } if ( isset ( $ this -> variables [ $ variableName ] ) ) { return $ this -> cast ( $ this -> variables [ $ variableName ] , $ type ) ; } return $ this -> cast ( null , $ type ) ; }
docstring: Returns COOKIE variable's value. If variable doesn't exist method returns default value for specified type.
  
  @param string|null $variableName
  @param int         $type
  @return array|float|int|mixed|null|string
docstring_tokens: Returns COOKIE variable s value . If variable doesn t exist method returns default value for specified type .