Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Write a Christmas carol in code. Here is my entry
- <?php
- class Night {
- function __construct($type){
- }
- }
- class All {
- public $calm = false;
- public $brightness = "#000000";
- function __construct(){
- }
- public function adjustCalmness(){
- $this->calm = true;
- }
- public function adjustBrightness(){
- $this->brightness = "#ffffff";
- }
- }
- $night1 = new Night("silent");
- $night2 = new Night("holy");
- $all = new All();
- $all->adjustCalmness();
- $all->adjustBrightness();
- $yon_virgin = 1.2;
- $mother = 1.3;
- $child = 1.4;
- round($yon_virgin);
- round($mother);
- round($child);
- // TODO: Holy infant, tender and mild
- function heavenly_peace(){
- sleep(100);
- }
- heavenly_peace();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement