protected function find($identifiers, $targetClass)
    {
        if ($identifiers instanceof $targetClass) {
            return $identifiers;
        }

        if ($this->isNullIdentifier($identifiers)) {
            return null;
        }

        return $this->objectManager->find($targetClass, $identifiers);
    }
protected function find($identifiers, $targetClass)
    {
        if ($identifiers instanceof $targetClass) {
            return $identifiers;
        }

        if ($this->isNullIdentifier($identifiers)) {
            return null;
        }

        return $this->objectManager->find($targetClass, $identifiers);
    }
protected function find ( $ identifiers , $ targetClass ) { if ( $ identifiers instanceof $ targetClass ) { return $ identifiers ; } if ( $ this -> isNullIdentifier ( $ identifiers ) ) { return null ; } return $ this -> objectManager -> find ( $ targetClass , $ identifiers ) ; }
Find an object by a given target class and identifier

@param  mixed   $identifiers
@param  string  $targetClass

@return object|null
Find an object by a given target class and identifier