Sonata\CustomerBundle\Controller\CustomerController::checkAddress PHP Метод

checkAddress() защищенный Метод

Checks if $address is valid.
protected checkAddress ( Sonata\Component\Customer\AddressInterface $address = null )
$address Sonata\Component\Customer\AddressInterface
    protected function checkAddress(AddressInterface $address = null)
    {
        if (null === $address || $address->getCustomer()->getId() !== $this->getCustomer()->getId()) {
            throw new NotFoundHttpException();
        }
    }