Fenos\Notifynder\Builder\NotifynderBuilder::raw PHP Method

raw() public method

Build the array with the builder inside a Closure, it has more flexibility for the generation of your array.
public raw ( Closure $closure ) : array | false
$closure Closure
return array | false
    public function raw(Closure $closure)
    {
        $builder = $closure($this);
        if (!is_null($builder)) {
            return $this->toArray();
        }
        return false;
    }