added simple math and charts modules
This commit is contained in:
21
vendor/andileco/eval-math/src/Exception/AbstractEvalMathException.php
vendored
Normal file
21
vendor/andileco/eval-math/src/Exception/AbstractEvalMathException.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
use Exception;
|
||||
|
||||
class AbstractEvalMathException extends Exception implements EvalMathException
|
||||
{
|
||||
protected $error = '';
|
||||
|
||||
public function __construct(array $parameters=[])
|
||||
{
|
||||
$message = strtr($this->error, $parameters);
|
||||
parent::__construct($message);
|
||||
}
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/BuiltInFunctionRedefinitionException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/BuiltInFunctionRedefinitionException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class BuiltInFunctionRedefinitionException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Cannot redefine built-in function :function()';
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/ConstantAssignmentException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/ConstantAssignmentException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class ConstantAssignmentException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Cannot assign to constant :constant';
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/DivisionByZeroException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/DivisionByZeroException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class DivisionByZeroException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Division by zero';
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/EvalMathException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/EvalMathException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
interface EvalMathException
|
||||
{
|
||||
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/ExpectingTokenException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/ExpectingTokenException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class ExpectingTokenException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = "Expecting ':token'";
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/IllegalCharacterException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/IllegalCharacterException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class IllegalCharacterException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = "illegal character ':character'";
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/InternalErrorException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/InternalErrorException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class InternalErrorException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Internal error';
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/InvalidArgumentCountException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/InvalidArgumentCountException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class InvalidArgumentCountException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Wrong number of arguments';
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/OperatorLacksOperandException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/OperatorLacksOperandException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class OperatorLacksOperandException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = "operator ':operator' lacks operand";
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/OperatorRequiredException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/OperatorRequiredException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class OperatorRequiredException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Operator required';
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/UndefinedVariableException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/UndefinedVariableException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class UndefinedVariableException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = "Undefined variable";
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/UndefinedVariableInFunctionDefinitionException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/UndefinedVariableInFunctionDefinitionException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class UndefinedVariableInFunctionDefinitionException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Undefined variable :token in function definition';
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/UnexpectedOperatorException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/UnexpectedOperatorException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class UnexpectedOperatorException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Unexpected operator \':operator\'';
|
||||
}
|
||||
14
vendor/andileco/eval-math/src/Exception/UnexpectedTokenException.php
vendored
Normal file
14
vendor/andileco/eval-math/src/Exception/UnexpectedTokenException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Serge Rodovnichenko <serge@syrnik.com>
|
||||
* @copyright Serge Rodovnichenko, 2019
|
||||
* @license BSD 2.0
|
||||
*/
|
||||
|
||||
namespace Andileco\Util\EvalMath\Exception;
|
||||
|
||||
|
||||
class UnexpectedTokenException extends AbstractEvalMathException
|
||||
{
|
||||
protected $message = 'Unexpected \':token\'';
|
||||
}
|
||||
Reference in New Issue
Block a user