![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/inventory.corals.io/vendor/box/spout/src/Spout/Common/Entity/Style/ |
<?php namespace Box\Spout\Common\Entity\Style; /** * Class Alignment * This class provides constants to work with text alignment. */ abstract class CellAlignment { const LEFT = 'left'; const RIGHT = 'right'; const CENTER = 'center'; const JUSTIFY = 'justify'; private static $VALID_ALIGNMENTS = [ self::LEFT => 1, self::RIGHT => 1, self::CENTER => 1, self::JUSTIFY => 1, ]; /** * @param string $cellAlignment * * @return bool Whether the given cell alignment is valid */ public static function isValid($cellAlignment) { return isset(self::$VALID_ALIGNMENTS[$cellAlignment]); } }