public function create($type, $source = null)
    {
        $notify = new Notify();
        $notify
            ->setType($type)
            ->setSource($source);

        return $notify;
    }
public function create($type, $source = null)
    {
        $notify = new Notify();
        $notify
            ->setType($type)
            ->setSource($source);

        return $notify;
    }
public function create ( $ type , $ source = null ) { $ notify = new Notify ( ) ; $ notify -> setType ( $ type ) -> setSource ( $ source ) ; return $ notify ; }
Creates a notify.

@param string $type
@param mixed  $source

@return Notify
Creates a notify .