Skip to content

Instantly share code, notes, and snippets.

View mcsee's full-sized avatar
🏠
Working from home

mcsee mcsee

🏠
Working from home
View GitHub Profile
<? public function optimize($processId);
<?
private function optimize($process);
<?
private function optimize($processId) {
throw new Exception('Testing coverage');
}
<?
function testOptimizationIsGoodEnough() {
$this->assertTrue(false);
}
function testOptimizationBelowThreshold() {
$this->assertTrue(false);
}
<?
class SupervisedLearningAlgorithm extends Singleton {
}
<?
SupervisedLearningAlgorithm::getInstance()->optimize($processId);
<?
(new SupervisedLearningAlgorithm())->optimize($processId);
<?
class SupervisedLearningAlgorithm {
}
<?
final class SupervisedLearningAlgorithm {
}
<?
final class SupervisedLearningAlgorithm {
public function calculate($processId) {
}
private function analize($processId) {
}
private function executeAndGetData(