for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tleckie\DesignPatterns\Strategy;
/**
* Class MultiplyStrategy
*
* @package Tleckie\DesignPatterns\Strategy
* @author Teodoro Leckie Westberg <[email protected]>
*/
class MultiplyStrategy implements StrategyInterface
{
* @param TermsInterface $term
* @return int|float
public function calculate(TermsInterface $term): int|float
return $term->termOne() * $term->termTwo();
}