Webmozart\Console\UI\Style\Alignment::all PHP Method

all() public static method

Returns all possible alignments.
public static all ( ) : int[]
return int[] A list of valid alignment constants.
    public static function all()
    {
        return array(self::LEFT, self::RIGHT, self::CENTER);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Returns the default column alignment.
  *
  * @param int $alignment One of the {@link Alignment} constants.
  *
  * @return static The current instance.
  */
 public function setDefaultColumnAlignment($alignment)
 {
     Assert::oneOf($alignment, Alignment::all(), 'The default column alignment must be one of the Alignment constants. Got: %s');
     $this->defaultColumnAlignment = $alignment;
     return $this;
 }
All Usage Examples Of Webmozart\Console\UI\Style\Alignment::all