This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
php-armadillo/stubs/internal/Scalar.php
2019-04-04 16:07:37 +08:00

29 lines
483 B
PHP

<?php
namespace Arma\Internal;
use Arma\Complex;
/**
* Interface for objects which wraps a single scalar value.
*
* @package Arma\Internal
*/
interface Scalar
{
/**
* Return a copy of the representing scalar value of this object.
*
* @return number|Complex
*/
function val();
/**
* Set the representing value to the specified new value.
*
* @param number|Complex $value
* @return void
*/
function setTo($value);
}