File "Rating.php"

Full path: /home/kosmetik/public_html/wp-includes/SimplePie/Rating.php
File size: 581 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

class SimplePie_Rating
{
    var $scheme;
    var $value;
    public function __construct($scheme = null, $value = null)
    {
        $this->scheme = $scheme;
        $this->value = $value;
    }
    public function __toString()
    {
        return md5(serialize($this));
    }
    public function get_scheme()
    {
        if ($this->scheme !== null) {
            return $this->scheme;
        }
        return null;
    }
    public function get_value()
    {
        if ($this->value !== null) {
            return $this->value;
        }
        return null;
    }
}