52 lines
657 B
PHP
52 lines
657 B
PHP
<?php
|
|
|
|
|
|
namespace miguel456\rps\Core;
|
|
|
|
|
|
use miguel456\rps\Base\BaseGameItem;
|
|
|
|
class Paper extends BaseGameItem
|
|
{
|
|
|
|
private $name = "Paper";
|
|
|
|
private $computerName = 'paper';
|
|
|
|
|
|
|
|
private $modifiers = [
|
|
|
|
'defeated_by' => [
|
|
'scissors'
|
|
],
|
|
'defeats' => [
|
|
'rock'
|
|
]
|
|
|
|
];
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
function getComputerName()
|
|
{
|
|
return $this->computerName;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
function getModifiers()
|
|
{
|
|
return $this->modifiers;
|
|
}
|
|
} |