Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

340 lines (330 sloc) 6.132 kb
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
namespace Doctrine\ODM\PHPCR\Mapping\Annotations;
use Doctrine\Common\Annotations\Annotation;
/**
* @Annotation
* @Target("CLASS")
*/
final class Document
{
/** @var string */
public $nodeType = 'nt:unstructured';
/** @var string */
public $repositoryClass;
/** @var string */
public $versionable;
/** @var boolean */
public $referenceable = false;
/** @var string */
public $translator;
}
/**
* @Annotation
* @Target("CLASS")
*/
final class MappedSuperclass
{
/** @var string */
public $nodeType = 'nt:unstructured';
/** @var string */
public $repositoryClass;
/** @var string */
public $translator;
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Node
{
}
/**
* The name of this node as in PHPCR\NodeInterface::getName
* @Annotation
* @Target("PROPERTY")
*/
final class Nodename
{
}
/**
* The parent of this node as in PHPCR\NodeInterface::getParent
* Parent is a reserved keyword in php, thus we use ParentDocument as name.
*
* @Annotation
* @Target("PROPERTY")
*/
final class ParentDocument
{
}
/**
* base class for all property types
*/
class Property
{
/** @var string */
public $name;
/** @var string */
public $type = 'undefined';
/** @var boolean */
public $multivalue = false;
/** @var string */
public $assoc;
}
/**
* Base class for all the translatable properties (i.e. every property but Uuid and Version)
*/
class TranslatableProperty extends Property
{
/** @var boolean */
public $translated = false;
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Id
{
public $id = true;
public $type = 'string';
/** @var string */
public $strategy;
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Uuid extends Property
{
public $name = 'jcr:uuid';
public $type = 'string';
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class String extends TranslatableProperty
{
public $type = 'string';
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Binary extends TranslatableProperty
{
public $type = 'binary';
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Long extends TranslatableProperty
{
public $type = 'long';
}
/**
* Convenience alias for Long.
* @Annotation
* @Target("PROPERTY")
*/
final class Int extends TranslatableProperty
{
public $type = 'long';
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Double extends TranslatableProperty
{
public $type = 'double';
}
/**
* Convenience alias for Double.
* @Annotation
* @Target("PROPERTY")
*/
final class Float extends TranslatableProperty
{
public $type = 'double';
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Date extends TranslatableProperty
{
public $type = 'date';
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Boolean extends TranslatableProperty
{
public $type = 'boolean';
}
/**
* String that is restricted to name with optional namespace
* @Annotation
* @Target("PROPERTY")
*/
final class Name extends TranslatableProperty
{
public $type = 'name';
}
/**
* String that is an absolute or relative path in the repository
* @Annotation
* @Target("PROPERTY")
*/
final class Path extends TranslatableProperty
{
public $type = 'path';
}
/**
* String that is validated to be an URI
* @Annotation
* @Target("PROPERTY")
*/
final class Uri extends TranslatableProperty
{
public $type = 'uri';
}
/**
* Large numbers bcmath compatible strings
* @Annotation
* @Target("PROPERTY")
*/
final class Decimal extends TranslatableProperty
{
public $type = 'decimal';
}
/**
* base class for the reference types
*/
class Reference
{
/** @var string */
public $targetDocument;
/** @var string */
public $strategy = 'weak';
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class ReferenceOne extends Reference
{
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class ReferenceMany extends Reference
{
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Child
{
/** @var string */
public $name;
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Children
{
/** @var string */
public $filter;
/** @var integer */
public $fetchDepth;
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Referrers
{
/** @var string */
public $filter;
/** @var string */
public $referenceType;
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class VersionName
{
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class VersionCreated
{
}
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Locale
{
}
/**
* @Annotation
* @Target("METHOD")
*/
final class PrePersist {}
/**
* @Annotation
* @Target("METHOD")
*/
final class PostPersist {}
/**
* @Annotation
* @Target("METHOD")
*/
final class PreUpdate {}
/**
* @Annotation
* @Target("METHOD")
*/
final class PostUpdate {}
/**
* @Annotation
* @Target("METHOD")
*/
final class PreRemove {}
/**
* @Annotation
* @Target("METHOD")
*/
final class PostRemove {}
/**
* @Annotation
* @Target("METHOD")
*/
final class PostLoad {}
Jump to Line
Something went wrong with that request. Please try again.