src/SecucardConnect/Product/Services/IdentResultsService.php
private function process(IdentResult &$result)
    {
        if (isset($result->person)) {
            foreach ($result->person as $p) {
                $attachments = $p->attachments;
                if (!empty($attachments)) {
                    foreach ($attachments as $attachment) {
                        $this->initMediaResource($attachment);
                    }
                }
            }
        }
    }
private function process(IdentResult &$result)
    {
        if (isset($result->person)) {
            foreach ($result->person as $p) {
                $attachments = $p->attachments;
                if (!empty($attachments)) {
                    foreach ($attachments as $attachment) {
                        $this->initMediaResource($attachment);
                    }
                }
            }
        }
    }
private function process ( IdentResult & $ result ) { if ( isset ( $ result -> person ) ) { foreach ( $ result -> person as $ p ) { $ attachments = $ p -> attachments ; if ( ! empty ( $ attachments ) ) { foreach ( $ attachments as $ attachment ) { $ this -> initMediaResource ( $ attachment ) ; } } } } }
Handles proper attachments initialization after retrieval of a ident result.
@param IdentResult $result
Handles proper attachments initialization after retrieval of a ident result .