Doctrine\OrientDB\Query\Validator\Rid::clean PHP Method

clean() protected method

protected clean ( $rid )
    protected function clean($rid)
    {
        if (!preg_match('/^\\s*#?(\\d+:\\d+)\\s*$/', $rid, $matches)) {
            throw new ValidationException($rid, __CLASS__);
        }
        return "#{$matches[1]}";
    }