mcred/FeedMeNow-PHP

View on GitHub
src/FeedMeNow/Model/Category.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace FeedMeNow\Model;

class Category
{
    private $alias;
    private $title;

    public function __construct($alias, $title)
    {
        $this->alias = $alias;
        $this->title = $title;
    }

    public static function create(array $data)
    {
        return new self(
            $data['alias'],
            $data['title']
        );
    }

    public function GetAlias()
    {
        return $this->alias;
    }
    public function GetTitle()
    {
        return $this->title;
    }
}