-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStack.php
More file actions
51 lines (44 loc) · 1.03 KB
/
Stack.php
File metadata and controls
51 lines (44 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Copyright (c) 2018 Webbing Brasil (http://www.webbingbrasil.com.br)
* All Rights Reserved
*
* This file is part of the NomadLog Portal project.
*
* @project NomadLog Portal
* @file Stack.php
* @author Danilo Andrade <danilo@webbingbrasil.com.br>
* @date 06/03/18 at 18:09
* @copyright Copyright (c) 2018 Webbing Brasil (http://www.webbingbrasil.com.br)
*/
/**
* Created by PhpStorm.
* User: danil
* Date: 03/10/2017
* Time: 13:18
*/
namespace App\MathParser;
use App\MathParser\Contracts\ExpressionContract;
use App\MathParser\Contracts\NumberContract;
use App\MathParser\Contracts\VariableContract;
class Stack extends \SplStack
{
/**
* @return NumberContract|ExpressionContract|VariableContract
*/
public function pop()
{
return parent::pop();
}
/**
* @return NumberContract|ExpressionContract|VariableContract
*/
public function top()
{
return parent::top();
}
public function push($value)
{
parent::push($value);
}
}