Skip to content

Instantly share code, notes, and snippets.

@finwe
Created April 19, 2012 13:46
Show Gist options
  • Save finwe/2421062 to your computer and use it in GitHub Desktop.
Save finwe/2421062 to your computer and use it in GitHub Desktop.
Annotations
<?php
private $knownAnnotations = array(
// phpdoc
'@param' => NULL,
'@var' => NULL,
'@return' => NULL,
'@author' => NULL,
'@license' => NULL,
'@see' => NULL,
'@uses' => NULL,
'@ingroup' => NULL,
'@package' => NULL,
'@subpackage' => NULL,
'@link' => NULL,
'@inheritdoc' => NULL,
'@todo' => NULL,
'@TODO' => NULL,
'@throws' => NULL,
// Nette
'@persistent' => NULL,
// Maintenance
'@SuppressWarnings' => NULL,
// GetSet
'@method' => NULL,
'@privateMethod' => NULL,
// PHPUnit
'@expectedException' => NULL,
'@expectedExceptionCode' => NULL,
'@expectedExceptionMessage' => NULL,
'@assert' => NULL,
'@covers' => NULL,
'@codeCoverageIgnore' => NULL,
'@dataProvider' => NULL,
'@depends' => NULL,
'@group' => NULL,
);
private $inlineAnnotations = array(
'@link',
'@see',
);
private $doctrineAnnotations = array(
'@Column' => NULL,
'@ChangeTrackingPolicy' => NULL,
'@DiscriminatorColumn' => NULL,
'@DiscriminatorMap' => NULL,
'@Entity' => NULL,
'@GeneratedValue' => NULL,
'@HasLifecycleCallbacks' => NULL,
'@Index' => NULL,
'@Id' => NULL,
'@InheritanceType' => NULL,
'@JoinColumn' => NULL,
'@JoinTable' => NULL,
'@ManyToOne' => NULL,
'@ManyToMany' => NULL,
'@MappedSuperclass' => NULL,
'@OneToOne' => NULL,
'@OneToMany' => NULL,
'@OrderBy' => NULL,
'@PostLoad' => NULL,
'@PostPersist' => NULL,
'@PostRemove' => NULL,
'@PostUpdate' => NULL,
'@PrePersist' => NULL,
'@PreRemove' => NULL,
'@PreUpdate' => NULL,
'@SequenceGenerator' => NULL,
'@Table' => NULL,
'@UniqueConstraint' => NULL,
'@Version' => NULL,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment