setStyle() public method

Set style.
public setStyle ( string $style ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface
$style string
return Sulu\Bundle\MediaBundle\Entity\CollectionInterface
示例#1
0
文件: Collection.php 项目: sulu/sulu
 /**
  * @param array $style
  *
  * @return $this
  */
 public function setStyle($style)
 {
     if (!is_string($style)) {
         $style = json_encode($style);
     }
     $this->entity->setStyle($style);
     return $this;
 }