src/Charcoal/Ui/PrioritizableTrait.php
public function setPriority($priority)
    {
        if (!is_numeric($priority)) {
            throw new InvalidArgumentException(
                'Priority must be an integer'
            );
        }

        $this->priority = intval($priority);
        return $this;
    }
public function setPriority($priority)
    {
        if (!is_numeric($priority)) {
            throw new InvalidArgumentException(
                'Priority must be an integer'
            );
        }

        $this->priority = intval($priority);
        return $this;
    }
public function setPriority ( $ priority ) { if ( ! is_numeric ( $ priority ) ) { throw new InvalidArgumentException ( 'Priority must be an integer' ) ; } $ this -> priority = intval ( $ priority ) ; return $ this ; }
Set the entity's priority index.

@param  integer $priority An index, for sorting.
@throws InvalidArgumentException If the priority is not an integer.
@return self
Set the entity s priority index .