52 lines
662 B
PHP
52 lines
662 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->getName();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
function getComputerName()
|
||
|
{
|
||
|
return $this->computerName;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
function getModifiers()
|
||
|
{
|
||
|
return $this->modifiers;
|
||
|
}
|
||
|
}
|