Skip to content

Commit

Permalink
code-style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
floriansemm committed Nov 14, 2016
1 parent 3fd18f0 commit 0b3c35c
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions Tests/Doctrine/Mapper/ValidTestEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ class ValidTestEntity
/**
* @Solr\Field(type="text")
*
* @var text
* @var string
*/
private $text;

/**
* @Solr\Field()
*
* @var text
* @var string
*/
private $title;

/**
* @Solr\Field(type="date", getter="format('d.m.Y')")
*
* @var date
* @var \DateTime
*/
private $created_at;

Expand All @@ -59,42 +59,48 @@ class ValidTestEntity
*/
private $privateField;

/**
* @return int
*/
public function getId()
{
return $this->id;
}

/**
* @param int $id
*/
public function setId($id)
{
$this->id = $id;
}

/**
* @return the $text
* @return string $text
*/
public function getText()
{
return $this->text;
}

/**
* @return the $title
* @return string $title
*/
public function getTitle()
{
return $this->title;
}

/**
* @param \FS\BlogBundle\Tests\Solr\Doctrine\Mapper\text $text
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}

/**
* @param \FS\BlogBundle\Tests\Solr\Doctrine\Mapper\text $title
* @param string $title
*/
public function setTitle($title)
{
Expand All @@ -118,15 +124,15 @@ public function getCostomField()
}

/**
* @return \FS\SolrBundle\Tests\Doctrine\Mapper\date
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->created_at;
}

/**
* @param \FS\SolrBundle\Tests\Doctrine\Mapper\date $created_at
* @param \DateTime $created_at
*/
public function setCreatedAt($created_at)
{
Expand All @@ -149,11 +155,17 @@ public function setPosts($posts)
$this->posts = $posts;
}

/**
* @param string $field
*/
public function setField($field)
{
$this->privateField = $field;
}

/**
* @return string
*/
public function getField()
{
return $this->privateField;
Expand Down

0 comments on commit 0b3c35c

Please sign in to comment.