public function getVisa(File $file)
    {
        $visa = new Visa();

        if (!$this->isEnabled()) {
            return $visa;
        }

        foreach ($this->checkers as $checker) {
            if ($checker->isApplicable($file)) {
                $visa->addResponse($checker->check($this->app['orm.em'], $file));
            }
        }

        return $visa;
    }
public function getVisa(File $file)
    {
        $visa = new Visa();

        if (!$this->isEnabled()) {
            return $visa;
        }

        foreach ($this->checkers as $checker) {
            if ($checker->isApplicable($file)) {
                $visa->addResponse($checker->check($this->app['orm.em'], $file));
            }
        }

        return $visa;
    }
public function getVisa ( File $ file ) { $ visa = new Visa ( ) ; if ( ! $ this -> isEnabled ( ) ) { return $ visa ; } foreach ( $ this -> checkers as $ checker ) { if ( $ checker -> isApplicable ( $ file ) ) { $ visa -> addResponse ( $ checker -> check ( $ this -> app [ 'orm.em' ] , $ file ) ) ; } } return $ visa ; }
Check a File package object against the Checkers, and returns a Visa

@param  File $file A File package object
@return Visa The Visa
Check a File package object against the Checkers and returns a Visa