Wall.php 974 Bytes
<?php

namespace FootyRoom\Core\Wall;

use FootyRoom\Core\Comment\Commentable;
use FootyRoom\Core\Comment\ICommentable;
use FootyRoom\Core\EventGenerator;

class Wall implements ICommentable
{
    use EventGenerator;
    use Commentable;

    /**
     * @var int
     */
    protected $userId;

    /**
     * @var string
     */
    protected $username;

    /**
     * Constructor.
     *
     * @param int $userId
     * @param string $username
     */
    public function __construct($userId, $username)
    {
        $this->userId = $userId;
        $this->username = $username;
    }

    /**
     * Gets the value of userId.
     *
     * @return int
     */
    public function getId()
    {
        return $this->userId;
    }

    /**
     * Gets the value of username.
     *
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    public function getCommentableType()
    {
        return 'wall';
    }
}