public function getNotifiableEntityIdentifiers(NotifiableEntity $notifiableEntity)
    {
        $discoveryNotifiables = $this->getDiscoveryNotifiables();
        foreach ($discoveryNotifiables as $notifiable) {
            if ($notifiable['class'] === $notifiableEntity->getClass()) {
                return $notifiable['identifiers'];
            }
        }
        throw new \RuntimeException('Unable to get the NotifiableEntity identifiers. This could be an Entity mapping issue');
    }
public function getNotifiableEntityIdentifiers(NotifiableEntity $notifiableEntity)
    {
        $discoveryNotifiables = $this->getDiscoveryNotifiables();
        foreach ($discoveryNotifiables as $notifiable) {
            if ($notifiable['class'] === $notifiableEntity->getClass()) {
                return $notifiable['identifiers'];
            }
        }
        throw new \RuntimeException('Unable to get the NotifiableEntity identifiers. This could be an Entity mapping issue');
    }
public function getNotifiableEntityIdentifiers ( NotifiableEntity $ notifiableEntity ) { $ discoveryNotifiables = $ this -> getDiscoveryNotifiables ( ) ; foreach ( $ discoveryNotifiables as $ notifiable ) { if ( $ notifiable [ 'class' ] === $ notifiableEntity -> getClass ( ) ) { return $ notifiable [ 'identifiers' ] ; } } throw new \ RuntimeException ( 'Unable to get the NotifiableEntity identifiers. This could be an Entity mapping issue' ) ; }
Get the identifier mapping for a NotifiableEntity

@param NotifiableEntity $notifiableEntity

@return array
@throws \RuntimeException
@throws \InvalidArgumentException
Get the identifier mapping for a NotifiableEntity