-
Notifications
You must be signed in to change notification settings - Fork 0
/
Variable.php
55 lines (47 loc) · 983 Bytes
/
Variable.php
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
52
53
54
55
<?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 Variable.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)
*/
namespace App\MathParser;
use App\MathParser\Contracts\VariableContract;
/**
* Class Variable
* @package App\MathParser
*/
class Variable extends Number implements VariableContract
{
private $name = '';
/**
* @return string
*/
public function operate()
{
return $this;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param $name
*
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
}