Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
interface TaskInterface
{
/**
* Assign the first number
* @param int $value
* @return $this
*/
public function setA($value);
/**
* Assign the other number
* @param int $value
* @return $this
*/
public function setB($value);
/**
* Calculate greatest common divisor, return false if none found
* @return int|false
*/
public function findGCD();
/**
* Calculate least common multiple, return false if none found
* @return int|false
*/
public function findLCM();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment