for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the LineMob package.
*
* (c) Ishmael Doss <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LineMob\Core\Template;
use LINE\LINEBot\MessageBuilder\StickerMessageBuilder;
/**
* @author WATCHDOGS <[email protected]>
class StickerTemplate extends AbstractTemplate
{
* @var string
public $packageId;
public $stickerId;
* {@inheritdoc}
public function getTemplate()
return new StickerMessageBuilder($this->packageId, $this->stickerId);
}
* @param int $stickerId
* @return StickerTemplate
public static function createMoon($stickerId)
$self = new self();
$self->packageId = 1;
$self->stickerId = $stickerId;
return $self;
public static function createBrown($stickerId)
$self->packageId = 2;
public static function createCherry($stickerId)
$self->packageId = 3;
public static function createDaily($stickerId)
$self->packageId = 4;