public function check($action = 'resource')
    {
        $this->setCurrentAction($action)->targets->each(function (
            Target $target
        ) {
            $target->check($target);
        });

        $this->notify();

        return $this;
    }
public function check($action = 'resource')
    {
        $this->setCurrentAction($action)->targets->each(function (
            Target $target
        ) {
            $target->check($target);
        });

        $this->notify();

        return $this;
    }
public function check ( $ action = 'resource' ) { $ this -> setCurrentAction ( $ action ) -> targets -> each ( function ( Target $ target ) { $ target -> check ( $ target ) ; } ) ; $ this -> notify ( ) ; return $ this ; }
Check all targets for a resource.

@param string $action
@return resource
Check all targets for a resource .