* Control gravity for images | * * Control gravity for videos * * @api */ class Compass extends QualifierMultiValue { use CompassGravityBuilderTrait; const NORTH_WEST = 'north_west'; const NORTH = 'north'; const NORTH_EAST = 'north_east'; const WEST = 'west'; const CENTER = 'center'; const EAST = 'east'; const SOUTH_WEST = 'south_west'; const SOUTH = 'south'; const SOUTH_EAST = 'south_east'; const XY_CENTER = 'xy_center'; /** * Compass constructor. * * @param string $direction */ public function __construct($direction = null) { parent::__construct(); $this->direction($direction); } /** * Sets the compass gravity direction. * * @param string $direction The gravity direction. Use the constants defined in this class. * * @return Compass */ protected function direction($direction) { $this->setSimpleValue('direction', $direction); return $this; } }