public function getStockistId()
    {
        try {
            return $this->stockistRepository->getById(
                $this->context->getRequest()->getParam('stockist_id')
            )->getId();
        } catch (NoSuchEntityException $e) {
            return null;
        }
    }
public function getStockistId()
    {
        try {
            return $this->stockistRepository->getById(
                $this->context->getRequest()->getParam('stockist_id')
            )->getId();
        } catch (NoSuchEntityException $e) {
            return null;
        }
    }
public function getStockistId ( ) { try { return $ this -> stockistRepository -> getById ( $ this -> context -> getRequest ( ) -> getParam ( 'stockist_id' ) ) -> getId ( ) ; } catch ( NoSuchEntityException $ e ) { return null ; } }
Return Stockist page ID

@return int|null
Return Stockist page ID