コード例 #1
0
ファイル: PropertySet.php プロジェクト: samizdam/WebDAV
 /**
  * Adds a new property to this set.
  *
  * @param PropertyInterface $property The property to add
  * @return self Provides a fluent interface
  */
 public function add(PropertyInterface $property)
 {
     $this->properties[$property->getName()] = $property;
     return $this;
 }
コード例 #2
0
ファイル: PropertyList.php プロジェクト: emarref/jwt
 /**
  * @param PropertyInterface $property
  */
 public function setProperty(PropertyInterface $property)
 {
     $this->properties[$property->getName()] = $property;
 }