Carbon_Fields\Field\Relationship_Field::set_max PHP Method

set_max() public method

Set the maximum allowed number of selected entries.
public set_max ( integer $max )
$max integer
    public function set_max($max)
    {
        $this->max = intval($max);
        return $this;
    }