Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Recipe for Developer Daily Capuccino
<?php
/**
* Recipe for Developer Daily Capuccino
*
* @author Gabriel Froes & Vanessa Weber <contato@codigofonte.com.br>
* @version 1.0
* @copyright GPL © 2018, youtube.com/codigofontetv
* @access public
* @package CDFTV\Recipes
* @example Classe CapuccinoDev.
* @video https://youtu.be/UcXpOcF-T6k
*/
class CapuccinoDev extends Recipes {
public function index() {
// Load ingredients
$Ingredients[] = $this->ingredients->load('powdered milk', 400, 'grams');
$Ingredients[] = $this->ingredients->load('sugar', 400, 'grams');
$Ingredients[] = $this->ingredients->load('chocolate powder', 5, 'soup spoon');
$Ingredients[] = $this->ingredients->load('instant coffee', 100, 'grams');
$Ingredients[] = $this->ingredients->load('cinnamon powder', 1, 'teaspoon');
$Ingredients[] = $this->ingredients->load('baking soda', 1, 'teaspoon');
// Mix the ingredients
$CapuccinoPowder = $this->actions->mix($Ingredients[]);
// Fill Cup of Coffee or Mug
$HotWater = $this->ingredients->load('hot water', 400, 'milliliters');
$Mug = $this->recipients->get('mug', 1);
$this->actions->fill($Mug, $HotWater);
$this->actions->fill($Mug, $this->ingredients->load($CapuccinoPowder, 3, 'soup spoon'));
// Mix the Beverage
$this->actions->mix($Mug->content);
// Done, let's drink!
$this->actions->scream('The capuccino is ready!!! Devs, let\'s drink!!!');
while ($this->recipients->isEmpty($Mug) == false) {
$this->actions->drink($Mug->content);
}
return true;
}
}
?>
@gabrielfroes

This comment has been minimized.

Copy link
Owner Author

commented Nov 29, 2018

@jon-by

This comment has been minimized.

Copy link

commented Nov 29, 2018

Genial!!! Huahuahua

@viniciocoelho

This comment has been minimized.

Copy link

commented Nov 29, 2018

Bem da hora Gabriel. kkkkkkkkkkkkk

@andersonsilvap

This comment has been minimized.

Copy link

commented Nov 29, 2018

Melhor capuccino que existe rs

@lucberna

This comment has been minimized.

Copy link

commented Nov 30, 2018

kkkk muito legal, parabens a dupla!!!

@marcaosi

This comment has been minimized.

Copy link

commented Nov 30, 2018

Muito bom casal, vou fazer assim que chegar em casa..
Vlw!!!

@pauloogliano

This comment has been minimized.

Copy link

commented Nov 30, 2018

Show hein! Bora fazer! Valeu galera.

@Fledson

This comment has been minimized.

Copy link

commented Nov 30, 2018

Gostei da idéia, obrigado Gabriel e Vanessa!
Vou tentar fazer!

@felipe199903

This comment has been minimized.

Copy link

commented Dec 4, 2018

kkk, muito bom, vou fazer com certeza!!!

@Mr-Snow

This comment has been minimized.

Copy link

commented Dec 5, 2018

Mano, desculpa o palavão, mas o canal é tão foda que eles se deram o trabalho de escrever a receita em php.
Amo vocês <3

@hitalo07

This comment has been minimized.

Copy link

commented Dec 6, 2018

Showwwwwwwwwwwwwwwwwwwwwww

@daviinacio

This comment has been minimized.

Copy link

commented Dec 9, 2018

while(1){
echo "genial!";
}

@murilokrugner

This comment has been minimized.

Copy link

commented Jan 17, 2019

Muito bom, parabéns!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.