public function setCellAlignment($alignment) { Assert::oneOf($alignment, Alignment::all(), 'The cell alignment must be one of the Alignment constants. Got: %s'); $this->cellAlignment = $alignment; return $this; }