Server : LiteSpeed
System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User : gazetufm ( 1431)
PHP Version : 8.1.35
Disable Function : NONE
Directory :  /home2/gazetufm/dumoshi.com/wp-content/plugins/wp-statistics/src/Decorators/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: ResourceDecorator.php

Path: //home2/gazetufm/dumoshi.com/wp-content/plugins/wp-statistics/src/Decorators/ResourceDecorator.php

Size: 523 B

Permissions: 0644

<?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);
    }
}

← Back to Directory Edit File 🔒 Chmod

WP File Manager