wollkey/otus-package

There is no license information available for the latest version (1.0.1) of this package.

Simple package for otus homework

1.0.1 2023-05-25 12:51 UTC

This package is auto-updated.

Last update: 2024-12-25 16:26:38 UTC


README

Adds up three numbers.

Requirements

  • PHP 8.2

Installation

composer require wollkey/otus-package

Usage

OOP style:

<?php

use Wollkey\OtusPackage\Adder;

$sum = (new Adder())->sumOfThree(1, 2, 3);

FP style:

<?php

use function Wollkey\OtusPackage\sumOfThree;

$sum = sumOfThree(1)(2)(3);