get() public method

Get variable
public get ( string $name, boolean $shouldThrow = true, Leafo\ScssPhp\Compiler\Environment $env = null ) : mixed
$name string
$shouldThrow boolean
$env Leafo\ScssPhp\Compiler\Environment
return mixed
Example #1
0
 /**
  * Get variable
  *
  * @api
  *
  * @param string    $name
  * @param boolean   $shouldThrow
  * @param \stdClass $env
  *
  * @return mixed
  */
 public function get($name, $shouldThrow = true, $env = null)
 {
     try {
         return parent::get($name, $shouldThrow, $env);
     } catch (\Exception $e) {
         echo $e->getMessage() . "\n";
         return ['string', '', ['']];
     }
 }