public function __construct() { parent::__construct(); // For logic purposes. $this->offsetX = null; $this->offsetY = null; // Shape collection $this->shapeCollection = new \ArrayObject(); }