Last active
January 15, 2016 10:50
-
-
Save event15/583a6347bfb4b5ae523e to your computer and use it in GitHub Desktop.
Zdajemy pierwsze 3 testy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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