src/Database/Concerns/IsAbility.php
public function getConstraints()
    {
        if (empty($this->options['constraints'])) {
            return new Group();
        }

        $data = $this->options['constraints'];

        return $data['class']::fromData($data['params']);
    }
public function getConstraints()
    {
        if (empty($this->options['constraints'])) {
            return new Group();
        }

        $data = $this->options['constraints'];

        return $data['class']::fromData($data['params']);
    }
public function getConstraints ( ) { if ( empty ( $ this -> options [ 'constraints' ] ) ) { return new Group ( ) ; } $ data = $ this -> options [ 'constraints' ] ; return $ data [ 'class' ] :: fromData ( $ data [ 'params' ] ) ; }
Get the ability's constraints.

@return \Silber\Bouncer\Constraints\Constrainer
Get the ability s constraints .