Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Adding getter, setter and interface annotations #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/Utils/Annotation/Getter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
namespace TheCodingMachine\TDBM\Utils\Annotation;

/**
* @Annotation
*/
final class Getter
{
/**
* The name of the getter
*
* @var string
*/
public $name;

/**
* If true, the getter will be "protected". Otherwise, getter is "public".
*
* @var bool
*/
public $hidden = false;
}
20 changes: 20 additions & 0 deletions src/Utils/Annotation/Interface_.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php


namespace TheCodingMachine\TDBM\Utils\Annotation;

use Doctrine\Common\Annotations\Annotation\Required;

/**
* @Annotation
*/
final class Interface_
{
/**
* The fully qualified interface name this bean should implement.
*
* @Required()
* @string
*/
public $value;
}
22 changes: 22 additions & 0 deletions src/Utils/Annotation/Setter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
namespace TheCodingMachine\TDBM\Utils\Annotation;

/**
* @Annotation
*/
final class Setter
{
/**
* The name of the setter
*
* @var string
*/
public $name;

/**
* If true, the setter will be "protected". Otherwise, setter is "public".
*
* @var bool
*/
public $hidden = false;
}