Skip to content

Commit

Permalink
Rename EventKindController to AdminEventKindController. Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Aug 25, 2023
1 parent 40ad512 commit 9cae88c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@


/**
* EventKind controller.
* AdminEventKind controller
*
* @Route("admin/event/kinds")
*/
class EventKindController extends Controller
class AdminEventKindController extends Controller
{
/**
* Lists all event kinds
Expand Down
4 changes: 2 additions & 2 deletions src/AppBundle/Entity/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ class Event
private $createdBy;

/**
* @ORM\Column(type="datetime")
*
* @var \DateTime
*
* @ORM\Column(type="datetime")
*/
private $updatedAt;

Expand Down
12 changes: 5 additions & 7 deletions src/AppBundle/Entity/EventKind.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class EventKind
private $createdAt;

/**
* Define toString.
*
* @return string
*/
public function __toString()
Expand All @@ -62,7 +60,7 @@ public function setCreatedAtValue()
}

/**
* Get id.
* Get id
*
* @return int
*/
Expand All @@ -72,7 +70,7 @@ public function getId()
}

/**
* Set name.
* Set name
*
* @param string $name
*
Expand All @@ -86,7 +84,7 @@ public function setName($name)
}

/**
* Get name.
* Get name
*
* @return string
*/
Expand All @@ -96,7 +94,7 @@ public function getName()
}

/**
* Get events.
* Get events
*
* @return \Doctrine\Common\Collections\Collection
*/
Expand All @@ -106,7 +104,7 @@ public function getEvents()
}

/**
* Get createdAt.
* Get createdAt
*
* @return \DateTime
*/
Expand Down

0 comments on commit 9cae88c

Please sign in to comment.