public function permissions()
    {
        if (is_array($this->permissions)) {
            return $this->permissions;
        }

        if ($this->permissions) {
            return [ $this->permissions ];
        }

        return [];
    }
public function permissions()
    {
        if (is_array($this->permissions)) {
            return $this->permissions;
        }

        if ($this->permissions) {
            return [ $this->permissions ];
        }

        return [];
    }
public function permissions ( ) { if ( is_array ( $ this -> permissions ) ) { return $ this -> permissions ; } if ( $ this -> permissions ) { return [ $ this -> permissions ] ; } return [ ] ; }
Returns permissions required to use the field.

@return string[]
Returns permissions required to use the field .