Skip to content

Instantly share code, notes, and snippets.

@jwage
Created November 28, 2010 23:39
Show Gist options
  • Save jwage/719403 to your computer and use it in GitHub Desktop.
Save jwage/719403 to your computer and use it in GitHub Desktop.
<?php
/** @Document */
class Article
{
/** @Id */
public $id;
/** @String */
public $title;
/** @Lock @Int */
public $locked;
/** @Version @Int */
public $version = 1;
/** @Version @Date */
//public $version;
public function __construct($title = null)
{
$this->title = $title;
}
public function getId()
{
return $this->id;
}
public function getTitle()
{
return $title;
}
public function getVersion()
{
return $this->version;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment