module = $module ?: SquareModule::instance(); $this->eye = $eye ?: new ModuleEye($this->module); $this->fill = $fill ?: Fill::default(); } public function withSize(int $size): self { $style = clone $this; $style->size = $size; return $style; } public function withMargin(int $margin): self { $style = clone $this; $style->margin = $margin; return $style; } public function getSize(): int { return $this->size; } public function getMargin(): int { return $this->margin; } public function getModule(): ModuleInterface { return $this->module; } public function getEye(): EyeInterface { return $this->eye; } public function getFill(): Fill { return $this->fill; } }