First Commit

This commit is contained in:
2020-02-18 14:47:34 +00:00
commit ecc9ecbcce
19 changed files with 999 additions and 0 deletions

52
src/Core/Paper.php Normal file
View File

@@ -0,0 +1,52 @@
<?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;
}
}