mrcnpdlk/xmdb-api

View on GitHub
src/Model/Imdb/Person.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * xMDB-API
 *
 * Copyright © 2017 pudelek.org.pl
 *
 * @license MIT License (MIT)
 *
 * For the full copyright and license information, please view source file
 * that is bundled with this package in the file LICENSE
 *
 * @author  Marcin Pudełek <marcin@pudelek.org.pl>
 */

namespace mrcnpdlk\Xmdb\Model\Imdb;

/**
 * Class Person
 *
 * @package mrcnpdlk\Xmdb\Model\Imdb
 */
class Person
{
    /**
     * @var string
     */
    public $id;
    /**
     * @var string
     */
    public $name;
    /**
     * @var \mrcnpdlk\Xmdb\Model\Imdb\Image
     */
    public $image;

    /**
     * Person constructor.
     *
     * @param string                               $id
     * @param string                               $name
     * @param \mrcnpdlk\Xmdb\Model\Imdb\Image|null $oImage
     */
    public function __construct(string $id, string $name, Image $oImage = null)
    {
        $this->id    = $id;
        $this->name  = $name;
        $this->image = $oImage;
    }
}