/var/www/html_uk/wp-content/plugins/automatewoo/includes/Review_Factory.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace AutomateWoo;

/**
 * Class Review_Factory.
 *
 * @since 4.5
 * @package AutomateWoo
 */
class Review_Factory {

    
/**
     * Get a review object.
     *
     * @param \WP_Comment|int $comment Comment or comment ID.
     *
     * @return Review|bool
     */
    
public static function get$comment ) {
        
$review = new Review$comment );
        return 
$review->exists $review false;
    }
}