Doctrine\OrientDB\Query\Command\Property::__construct PHP 메소드

__construct() 공개 메소드

Builds a new statement setting the $property to manipulate.
public __construct ( $property )
$property
    public function __construct($property)
    {
        parent::__construct();
        $this->setProperty($property);
    }

Usage Example

예제 #1
0
 /**
  * Generates a valid SQL statements to add $property of type $type
  * linked to $linked.
  *
  * @param string $property
  * @param string $type
  * @param string $linked
  */
 public function __construct($property, $type = null, $linked = null)
 {
     parent::__construct($property);
     if ($type) {
         $this->setType($type);
     }
     if ($linked) {
         $this->setLinked($linked);
     }
 }