Copied!
CloneableInstantiable
Methods
public Maknz\Slack\Payload::__construct(array $attributes)
 

Instantiate a new payload.

  • param array $attributes
public static Maknz\Slack\Block::factory(array $attributes)
 

Create a Block element from a keyed array of attributes.

  • param array $attributes
  • return \Block
  • throws \InvalidArgumentException
public Maknz\Slack\Block::getBlockId()
 

Get the block identifier.

  • return string
public getExternalId()
 

Get the external identifier for the file.

  • return string
public getSource()
 

Get the file source.

  • return string
public Maknz\Slack\Block::getType()
 

Get the block type.

  • return string
public Maknz\Slack\Block::setBlockId( $blockId)
 

Set the block identifier.

  • param string $blockId
  • return $this
public setExternalId( $externalId)
 

Set the external identifier for the file.

  • param string $externalId
  • return \File
public setSource( $source)
 

Set the file source.

  • param string $source
  • return \File
public toArray()
 

Convert the block to its array representation.

  • return array
Properties
protected static $availableAttributes = ['external_id' => 'external_id', 'source' => 'source', 'block_id' => 'block_id']
 

Internal attribute to property map.

  • var array
protected Maknz\Slack\Block::$block_id = NULL
 

Block identifier.

  • var string
protected $external_id = NULL
 

External identifier for the file.

  • var string
protected $source = 'remote'
 

Source for the file.

  • var string
protected $type = 'file'
 

Block type.

  • var string
Methods
protected Maknz\Slack\Payload::fillProperties(array $attributes) : self
 
  • param array $attributes
  • return $this
Properties
protected static $availableAttributes = ['external_id' => 'external_id', 'source' => 'source', 'block_id' => 'block_id']
 

Internal attribute to property map.

  • var array
Methods
public static Maknz\Slack\Block::factory(array $attributes)
 

Create a Block element from a keyed array of attributes.

  • param array $attributes
  • return \Block
  • throws \InvalidArgumentException
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration