View file vendor/robmorgan/phinx/src/Phinx/Db/Action/ChangeComment.php

File size: 846B
<?php

/**
 * MIT License
 * For full license information, please view the LICENSE file that was distributed with this source code.
 */

namespace Phinx\Db\Action;

use Phinx\Db\Table\Table;

class ChangeComment extends Action
{
    /**
     * The new comment for the table
     *
     * @var string|null
     */
    protected $newComment;

    /**
     * Constructor
     *
     * @param \Phinx\Db\Table\Table $table The table to be changed
     * @param string|null $newComment The new comment for the table
     */
    public function __construct(Table $table, $newComment)
    {
        parent::__construct($table);
        $this->newComment = $newComment;
    }

    /**
     * Return the new comment for the table
     *
     * @return string|null
     */
    public function getNewComment()
    {
        return $this->newComment;
    }
}