Skip to content

Commit

Permalink
updated Badge class
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermednt committed Oct 9, 2018
1 parent 3588309 commit beb6820
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 29 deletions.
38 changes: 10 additions & 28 deletions Model/Badge.php
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
<?php
/**
* This file is part of the login-cidadao project or it's bundles.
*
* (c) Guilherme Donato <guilhermednt on github>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace LoginCidadao\BadgesBundle\Model;

use LoginCidadao\BadgesControlBundle\Model\BadgeInterface;

class Badge implements BadgeInterface
class Badge extends \LoginCidadao\BadgesControlBundle\Model\Badge
{

protected $namespace;
protected $name;
protected $data;

public function __construct($namespace, $name, $data = null)
{
$this->namespace = $namespace;
$this->name = $name;
$this->data = $data;
}

public function getData()
{
return $this->data;
}

public function getName()
{
return $this->name;
}

public function getNamespace()
{
return $this->namespace;
}

//
}
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=5.3.0",
"symfony/translation": "2.8.*|^3",
"doctrine/orm": ">=2.4"
},
"autoload": {
"psr-0": { "LoginCidadao\\BadgesBundle": "" }
Expand Down

0 comments on commit beb6820

Please sign in to comment.