public function find($id)
    {
        foreach ($this->findAll() as $application) {
            if ($id == $application->getId()) {
                return $application;
            }
        }

        return null;
    }
public function find($id)
    {
        foreach ($this->findAll() as $application) {
            if ($id == $application->getId()) {
                return $application;
            }
        }

        return null;
    }
public function find ( $ id ) { foreach ( $ this -> findAll ( ) as $ application ) { if ( $ id == $ application -> getId ( ) ) { return $ application ; } } return null ; }
Find application by ID

@param $id App ID
@return Application|null
Find application by ID