Scalr\Model\Entity\Client::checkLimit PHP Method

checkLimit() public method

Checks account limits
public checkLimit ( string $limitName, integer $limitValue ) : boolean
$limitName string
$limitValue integer
return boolean
    public function checkLimit($limitName, $limitValue)
    {
        return Limit::findOne([['accountId' => $this->id], ['name' => $limitName]])->check($limitValue);
    }