public function canConvertFrom($source, $targetType) { return preg_match(self::PATTERN_MATCH_SESSIONIDENTIFIER, $source) === 1 && $targetType === $this->targetType; }