My attempts at exercism.org
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 30 lines 517 B view raw
1<?php 2 3class ProgramWindow 4{ 5 public $y; 6 public $x; 7 8 public $height; 9 public $width; 10 11 public function __construct() 12 { 13 $this->y = 0; 14 $this->x = 0; 15 $this->height = 600; 16 $this->width = 800; 17 } 18 19 public function resize(Size $size): void 20 { 21 $this->height = $size->height; 22 $this->width = $size->width; 23 } 24 25 public function move(Position $position): void 26 { 27 $this->y = $position->y; 28 $this->x = $position->x; 29 } 30}