Skip to content

Instantly share code, notes, and snippets.

@event15
Last active January 15, 2016 10:50
Show Gist options
  • Save event15/583a6347bfb4b5ae523e to your computer and use it in GitHub Desktop.
Save event15/583a6347bfb4b5ae523e to your computer and use it in GitHub Desktop.
Zdajemy pierwsze 3 testy
<?php
namespace Kata;
class PrimeFactors
{
public function factorize($number)
{
if($number === 2) {
return [2];
}
if($number === 3) {
return [3];
}
return [];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment