Skip to content

Instantly share code, notes, and snippets.

@lajosbencz
Created March 31, 2016 10:32
Show Gist options
  • Save lajosbencz/9a3a0581c291db6cf04479be1b88c3e4 to your computer and use it in GitHub Desktop.
Save lajosbencz/9a3a0581c291db6cf04479be1b88c3e4 to your computer and use it in GitHub Desktop.
<?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