1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-15 19:42:08 +00:00

Added name on client

- Fix typos in field name
- Added migration for name field in API client table

Manually cherry-picked from PR
https://github.com/wallabag/wallabag/pull/2171
This commit is contained in:
Thomas Citharel 2016-05-21 18:09:38 +02:00 committed by Jeremy Benoist
parent db4d63fc1a
commit 9c545fe028
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
13 changed files with 110 additions and 24 deletions

View file

@ -18,8 +18,39 @@ class Client extends BaseClient
*/
protected $id;
/**
* @var string
*
* @ORM\Column(name="name", type="text", nullable=true)
*/
protected $name;
public function __construct()
{
parent::__construct();
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set name.
*
* @param string $name
*
* @return Client
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
}