Sindbad~EG File Manager

Current Path : /var/www/html/sumar.com.py/wp-content/plugins/wp-statistics/src/Decorators/
Upload File :
Current File : /var/www/html/sumar.com.py/wp-content/plugins/wp-statistics/src/Decorators/ResourceDecorator.php

<?php

namespace WP_Statistics\Decorators;

class ResourceDecorator
{
    private $postId;

    public function __construct($postId)
    {
        $this->postId = $postId;
    }

    public function getId()
    {
        return $this->postId;
    }

    public function getTitle()
    {
        return get_the_title($this->postId);
    }

    public function getUrl()
    {
        return get_the_permalink($this->postId);
    }

    public function getPostType()
    {
        return get_post_type($this->postId);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists